MCPcopy Create free account
hub / github.com/facebook/time / BitReader

Struct BitReader

rtcm/bits.go:20–23  ·  view source on GitHub ↗

BitReader reads arbitrary numbers of bits from a byte slice.

Source from the content-addressed store, hash-verified

18
19// BitReader reads arbitrary numbers of bits from a byte slice.
20type BitReader struct {
21 data []byte
22 pos int // current bit position
23}
24
25// NewBitReader creates a BitReader over the given byte slice.
26func NewBitReader(data []byte) *BitReader {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected