MCPcopy
hub / github.com/lindb/lindb / Next

Method Next

series/binary_iterator.go:103–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103func (b *BinaryIterator) Next() (startTime int64, fieldIt FieldIterator) {
104 startTime = b.reader.ReadVarint64()
105 length := b.reader.ReadVarint32()
106 if length == 0 {
107 return
108 }
109 data := b.reader.ReadBytes(int(length))
110 if b.fieldIt == nil {
111 b.fieldIt = NewFieldIterator(data)
112 } else {
113 b.fieldIt.reset(data)
114 }
115 fieldIt = b.fieldIt
116 return
117}
118
119func (b *BinaryIterator) MarshalBinary() ([]byte, error) {
120 return b.data, nil

Callers

nothing calls this directly

Calls 5

NewFieldIteratorFunction · 0.85
ReadVarint64Method · 0.80
ReadVarint32Method · 0.80
ReadBytesMethod · 0.65
resetMethod · 0.65

Tested by

no test coverage detected