utils

package
v0.0.0-...-bb7f942 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigByteToFloat32

func BigByteToFloat32(data []byte) float32

BigEndian

func BigByteToFloat64

func BigByteToFloat64(data []byte) float64

func BigByteToInt

func BigByteToInt(data []byte) int64

BigEndian

func BigFloatToByte32

func BigFloatToByte32(data float32) []byte

func BigFloatToByte64

func BigFloatToByte64(data float64) []byte

func BigIntToByte

func BigIntToByte(data int64, ln int) []byte

func CheckContext

func CheckContext(ctx context.Context) bool

func LitByteToFloat32

func LitByteToFloat32(data []byte) float32

LittleEndian

func LitByteToFloat64

func LitByteToFloat64(data []byte) float64

func LitByteToInt

func LitByteToInt(data []byte) int64

LittleEndian

func LitFloatToByte32

func LitFloatToByte32(data float32) []byte

func LitFloatToByte64

func LitFloatToByte64(data float64) []byte

func LitIntToByte

func LitIntToByte(data int64, ln int) []byte

func PathExists

func PathExists(path string) bool

func TcpRead

func TcpRead(ctx context.Context, conn net.Conn, ln uint) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL