package
0.0.0-20240106054325-8321ad0eda4c
Repository: https://github.com/kash-protocol/kashd.git
Documentation: pkg.go.dev

# Functions

Borrow returns a byte slice from the free list with a length of 8.
PutUint16 serializes the provided uint16 using the given byte order into a buffer from the free list and writes the resulting two bytes to the given writer.
PutUint32 serializes the provided uint32 using the given byte order into a buffer from the free list and writes the resulting four bytes to the given writer.
PutUint64 serializes the provided uint64 using the given byte order into a buffer from the free list and writes the resulting eight bytes to the given writer.
PutUint8 copies the provided uint8 into a buffer from the free list and writes the resulting byte to the given writer.
Return puts the provided byte slice back on the free list.
Uint16 reads two bytes from the provided reader using a buffer from the free list, converts it to a number using the provided byte order, and returns the resulting uint16.
Uint32 reads four bytes from the provided reader using a buffer from the free list, converts it to a number using the provided byte order, and returns the resulting uint32.
Uint64 reads eight bytes from the provided reader using a buffer from the free list, converts it to a number using the provided byte order, and returns the resulting uint64.
Uint8 reads a single byte from the provided reader using a buffer from the free list and returns it as a uint8.