MCPcopy Create free account
hub / github.com/brimdata/super / Metadata

Method Metadata

csup/bytes.go:82–98  ·  view source on GitHub ↗
(cctx *Context, off uint64)

Source from the content-addressed store, hash-verified

80}
81
82func (b *BytesEncoder) Metadata(cctx *Context, off uint64) (uint64, ID) {
83 bytesLoc := Segment{
84 Offset: off,
85 Length: uint64(len(b.bytesOut)),
86 MemLength: b.bytesLen,
87 CompressionFormat: b.bytesFmt,
88 }
89 off, offsLoc := b.offsets.Segment(off + bytesLoc.Length)
90 return off, cctx.enter(&Bytes{
91 Typ: b.typ,
92 Bytes: bytesLoc,
93 Offsets: offsLoc,
94 Min: b.min,
95 Max: b.max,
96 Count: uint32(len(b.offsets.vals) - 1),
97 })
98}
99
100func (b *BytesEncoder) Emit(w io.Writer) error {
101 if len(b.bytesOut) > 0 {

Callers

nothing calls this directly

Calls 2

SegmentMethod · 0.80
enterMethod · 0.45

Tested by

no test coverage detected