Documentation ¶
Index ¶
- func GetByte(data []byte, offset int) byte
- func GetBytes(data []byte, offset, length int) []byte
- func GetBytesCopy(data []byte, offset, length int) []byte
- func GetUint16(data []byte, offset int) uint16
- func GetUint24(data []byte, offset int) uint32
- func GetUint32(data []byte, offset int) uint32
- func SetBytes(data []byte, offset, length int, val []byte)
- func SetUint16(data []byte, offset int, val uint16)
- func SetUint24(data []byte, offset int, val uint32)
- func SetUint32(data []byte, offset int, val uint32)
- func UInt32ToBytesSlice(i uint32) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBytes ¶
GetBytes 获取从offset开始的length个byte
func GetBytesCopy ¶
GetBytesCopy 获取从offset开始的length个byte的拷贝
func SetBytes ¶
SetBytes 将val存放在offset开始的length个byte中
func SetUint16 ¶
SetUint16 将val放在offset起始的2个byte中
func SetUint24 ¶
SetUint24 将val放在offset起始的3个byte中
func SetUint32 ¶
SetUint32 将val放在offset起始的4个byte中
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.