MCPcopy
hub / github.com/RoaringBitmap/roaring / Reset

Method Reset

internal/byte_input.go:133–136  ·  view source on GitHub ↗

Reset resets the given buffer with a new byte slice

(buf []byte)

Source from the content-addressed store, hash-verified

131
132// Reset resets the given buffer with a new byte slice
133func (b *ByteBuffer) Reset(buf []byte) {
134 b.buf = buf
135 b.off = 0
136}
137
138// ByteInputAdapter reader wrapper
139type ByteInputAdapter struct {

Callers 6

ReadFromMethod · 0.45
FromBufferMethod · 0.45
TestCloneCOWContainersFunction · 0.45
TestBitmapFromBufferCOWFunction · 0.45
TestCloneCOWContainersFunction · 0.45
fromUnsafeBytesCheckedFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestCloneCOWContainersFunction · 0.36
TestBitmapFromBufferCOWFunction · 0.36
TestCloneCOWContainersFunction · 0.36
fromUnsafeBytesCheckedFunction · 0.36