Package binary implements functions for processing binary data.
GetUint gets a MSB-encoded unsigned integer from the argument buffer. The size of the result number is determined by the length of the input buffer.
GetUint32 gets a MSB-encoded uint32 value from the argument buffer.
GetUint32 gets a LSB-encoded uint32 value from the argument buffer.
GetUint64 gets a MSB-encoded uint64 value from the argument buffer.
GetUint64LSB gets a LSB-encoded uint64 value from the argument buffer.
PutUint puts the unsigned integer v to the buffer d starting from the offset offset in MSB-order. The number of bytes encoded is determined by the size of the input value v.
PutUint32 puts the uint32 value v to the buffer d starting from the offset offset in MSB-order.
PutUint64 puts the uint64 value v to the buffer d starting from the offset offset in MSB-order.