package
0.38.0-preview.0
Repository: https://github.com/onflow/flow-go.git
Documentation: pkg.go.dev

# Functions

AppendLongData appends data shorter than 32MB.
AppendShortData appends data shorter than 16kB.
AppendUint16 appends the value bytes to the input slice (big endian).
AppendUint32 appends the value bytes to the input slice (big endian).
AppendUint64 appends the value bytes to the input slice (big endian).
AppendUint8 appends the value byte to the input slice.
MaxUint16 returns the max value of two uint16.
ReadFromBuffer reads 'length' bytes from the input.
ReadLongDataFromReader reads data shorter than 16kB from reader.
ReadShortData read data shorter than 16kB and return the rest of bytes.
ReadShortDataFromReader reads data shorter than 16kB from reader.
ReadSlice reads `size` bytes from the input.
ReadUint16 reads a uint16 from the input and returns the rest.
ReadUint32 reads a uint32 from the input and returns the rest.
ReadUint64 reads a uint64 from the input and returns the rest.
ReadUint8 reads a uint8 from the input and returns the rest.
Uint16ToBinary converst a uint16 to a byte slice (big endian).
Uint64ToBinary converst a uint64 to a byte slice (big endian).