encoding

package
v0.0.0-...-5753a94 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Byte2ToUint16

func Byte2ToUint16(b [2]byte) uint16

Byte2ToUint16 converts specified bytes to a integer.

func BytesToInteger

func BytesToInteger(b []byte) uint

BytesToInteger converts specified bytes to a integer.

func BytesToUint32

func BytesToUint32(b [4]byte) uint32

BytesToUint32 converts specified bytes to a integer.

func BytesToUint64

func BytesToUint64(b [8]byte) uint64

BytesToUint64 converts specified bytes to a integer.

func BytesToUint8

func BytesToUint8(b [1]byte) uint8

BytesToUint8 converts specified bytes to a integer.

func IntegerToBytes

func IntegerToBytes(v uint, b []byte)

IntegerToBytes converts a specified integer to bytes.

func Uint16ToBytes

func Uint16ToBytes(v uint16, b *[2]byte)

Uint16ToBytes converts a specified integer to bytes.

func Uint32ToBytes

func Uint32ToBytes(v uint32, b *[4]byte)

Uint32ToBytes converts a specified integer to bytes.

func Uint64ToBytes

func Uint64ToBytes(v uint64, b *[8]byte)

Uint64ToBytes converts a specified integer to bytes.

func Uint8ToBytes

func Uint8ToBytes(v uint8, b *[1]byte)

Uint8ToBytes converts a specified integer to bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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