Documentation ¶
Overview ¶
Package bits contains functions to read/write bits from/to buffers.
Index ¶
- func ReadBits(buf []byte, pos *int, n int) (uint64, error)
- func ReadFlag(buf []byte, pos *int) (bool, error)
- func ReadGolombSigned(buf []byte, pos *int) (int32, error)
- func ReadGolombUnsigned(buf []byte, pos *int) (uint32, error)
- func ReadUint16(buf []byte, pos *int) (uint16, error)
- func ReadUint32(buf []byte, pos *int) (uint32, error)
- func ReadUint8(buf []byte, pos *int) (uint8, error)
- func WriteBits(buf []byte, pos *int, bits uint64, n int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadGolombSigned ¶
ReadGolombSigned reads a signed golomb-encoded value.
func ReadGolombUnsigned ¶
ReadGolombUnsigned reads an unsigned golomb-encoded value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.