MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / readFrom

Method readFrom

serialization_generic.go:22–28  ·  view source on GitHub ↗
(stream io.Reader)

Source from the content-addressed store, hash-verified

20}
21
22func (b *arrayContainer) readFrom(stream io.Reader) (int, error) {
23 err := binary.Read(stream, binary.LittleEndian, b.content)
24 if err != nil {
25 return 0, err
26 }
27 return 2 * len(b.content), nil
28}
29
30func (b *bitmapContainer) writeTo(stream io.Writer) (int, error) {
31 if b.cardinality <= arrayDefaultMaxSize {

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected