Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NativeEndian binary.ByteOrder
NativeEndian represents the endianness of the current machine
Functions ¶
func InitNativeEndian ¶
func InitNativeEndian(b []byte)
InitNativeEndian figures out the endianness of the current machine (https://stackoverflow.com/questions/51332658/any-better-way-to-check-endianness-in-go)
func ReadUint16 ¶
ReadUint16 reads the uint16 value from the byte slice.
func ReadUint32 ¶
ReadUint32 reads the uint32 value from the byte slice.
func ReadUint64 ¶
ReadUint64 reads the uint64 value from the byte slice.
func WriteUint16 ¶
WriteUint16 writes the provided uint16 value to byte slice.
func WriteUint16Buffer ¶ added in v1.6.0
WriteUint16Buffer writes the provided uint16 value to the byte slice.
func WriteUint32 ¶
WriteUint32 writes the provided uint32 value to byte slice.
func WriteUint64 ¶
WriteUint64 writes the provided uint64 value to byte slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.