()
| 101 | } |
| 102 | |
| 103 | func (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 | |
| 119 | func (b *BinaryIterator) MarshalBinary() ([]byte, error) { |
| 120 | return b.data, nil |
nothing calls this directly
no test coverage detected