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

Method Read

internal/byte_input.go:60–67  ·  view source on GitHub ↗

Read implements io.Reader.

(p []byte)

Source from the content-addressed store, hash-verified

58
59// Read implements io.Reader.
60func (b *ByteBuffer) Read(p []byte) (int, error) {
61 data, err := b.Next(len(p))
62 if err != nil {
63 return 0, err
64 }
65 copy(p, data)
66 return len(data), nil
67}
68
69// Next returns a slice containing the next n bytes from the reader
70// If there are fewer bytes than the given n, io.ErrUnexpectedEOF will be returned

Callers 5

FromUnsafeBytesMethod · 0.95
readFromMethod · 0.45
readFromMethod · 0.45
getRandomUint64SetFunction · 0.45
retrieveRealDataBitmapsFunction · 0.45

Calls 1

NextMethod · 0.95

Tested by 2

getRandomUint64SetFunction · 0.36
retrieveRealDataBitmapsFunction · 0.36