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

Function NewBitReader

rtcm/bits.go:26–28  ·  view source on GitHub ↗

NewBitReader creates a BitReader over the given byte slice.

(data []byte)

Source from the content-addressed store, hash-verified

24
25// NewBitReader creates a BitReader over the given byte slice.
26func NewBitReader(data []byte) *BitReader {
27 return &BitReader{data: data}
28}
29
30// ReadBits reads n bits (1-32) as an unsigned value.
31func (r *BitReader) ReadBits(n int) uint32 {

Callers 6

multipleBitFunction · 0.92
TestBitReaderSkipFunction · 0.85
decode1019Function · 0.85
decodeMSM7Function · 0.85

Calls

no outgoing calls

Tested by 6

multipleBitFunction · 0.74
TestBitReaderSkipFunction · 0.68
decode1019Function · 0.68
decodeMSM7Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…