bytes

package
v0.0.0-...-886a5b3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToFloat32

func BytesToFloat32(b []byte, isBig bool) (float32, error)

bytes to float32

func BytesToFloat64

func BytesToFloat64(b []byte, isBig bool) (float64, error)

bytes to float64

func BytesToUInt16

func BytesToUInt16(b []byte, isBig bool) (uint16, error)

bytes to uint 16

func BytesToUInt32

func BytesToUInt32(b []byte, isBig bool) (uint32, error)

bytes to uint 32

func BytesToUInt64

func BytesToUInt64(b []byte, isBig bool) (uint64, error)

bytes to uint 64

func Float32ToBytes

func Float32ToBytes(f float32, isBig bool) []byte

Float32 to 4 bytes

func Float64ToBytes

func Float64ToBytes(f float64, isBig bool) []byte

Float64 to 8 bytes

func GetBitFromBites

func GetBitFromBites(b byte, bit int) bool

func SetBitFromBites

func SetBitFromBites(b byte, bit int, io bool) byte

func UInt16ToBytes

func UInt16ToBytes(i uint16, isBig bool) []byte

int to 2 bytes

func UInt32ToBytes

func UInt32ToBytes(i uint32, isBig bool) []byte

int to 4 bytes

func UInt64ToBytes

func UInt64ToBytes(i uint64, isBig bool) []byte

int to 8 bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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