MCPcopy Index your code
hub / github.com/Monibuca/engine / ReadBits

Method ReadBits

util/bits/bits.go:37–44  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

35}
36
37func (self *Reader) ReadBits(n int) (bits uint, err error) {
38 var bits64 uint64
39 if bits64, err = self.ReadBits64(n); err != nil {
40 return
41 }
42 bits = uint(bits64)
43 return
44}
45
46func (self *Reader) Read(p []byte) (n int, err error) {
47 for n < len(p) {

Callers 1

TestBitsFunction · 0.95

Calls 1

ReadBits64Method · 0.95

Tested by 1

TestBitsFunction · 0.76