Reader implements a ChunkReader for a serialized byte stream of series data.
| 633 | // Reader implements a ChunkReader for a serialized byte stream |
| 634 | // of series data. |
| 635 | type Reader struct { |
| 636 | // The underlying bytes holding the encoded series data. |
| 637 | // Each slice holds the data for a different segment. |
| 638 | bs []ByteSlice |
| 639 | cs []io.Closer // Closers for resources behind the byte slices. |
| 640 | size int64 // The total size of bytes in the reader. |
| 641 | pool chunkenc.Pool |
| 642 | } |
| 643 | |
| 644 | func newReader(bs []ByteSlice, cs []io.Closer, pool chunkenc.Pool) (*Reader, error) { |
| 645 | cr := Reader{pool: pool, bs: bs, cs: cs} |
nothing calls this directly
no outgoing calls
no test coverage detected