MCPcopy Create free account
hub / github.com/Monibuca/engine / WriteBits

Method WriteBits

util/bits/bits.go:87–89  ·  view source on GitHub ↗
(bits uint, n int)

Source from the content-addressed store, hash-verified

85}
86
87func (self *Writer) WriteBits(bits uint, n int) (err error) {
88 return self.WriteBits64(uint64(bits), n)
89}
90
91func (self *Writer) Write(p []byte) (n int, err error) {
92 for n < len(p) {

Callers 1

TestBitsFunction · 0.95

Calls 1

WriteBits64Method · 0.95

Tested by 1

TestBitsFunction · 0.76