Documentation ¶
Overview ¶
Package bits contains functions to read/write bits from/to buffers.
Index ¶
- func HasSpace(buf []byte, pos int, n int) error
- func ReadBits(buf []byte, pos *int, n int) (uint64, error)
- func ReadBitsUnsafe(buf []byte, pos *int, n int) uint64
- func ReadFlag(buf []byte, pos *int) (bool, error)
- func ReadFlagUnsafe(buf []byte, pos *int) bool
- func ReadGolombSigned(buf []byte, pos *int) (int32, error)
- func ReadGolombUnsigned(buf []byte, pos *int) (uint32, error)
- func WriteBits(buf []byte, pos *int, v uint64, n int)deprecated
- func WriteBitsUnsafe(buf []byte, pos *int, v uint64, n int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadBitsUnsafe ¶
ReadBitsUnsafe reads N bits.
func ReadFlagUnsafe ¶
ReadFlagUnsafe reads a boolean flag.
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.