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

Method Encode

value.go:166–169  ·  view source on GitHub ↗

Encode appends the BSUP representation of this value to the passed in argument and returns the resulting scode.Bytes (which may or may not be the same underlying buffer, as with append(), depending on its capacity)

(dst scode.Bytes)

Source from the content-addressed store, hash-verified

164// argument and returns the resulting scode.Bytes (which may or may not
165// be the same underlying buffer, as with append(), depending on its capacity)
166func (v Value) Encode(dst scode.Bytes) scode.Bytes {
167 //XXX don't need this...
168 return scode.Append(dst, v.Bytes())
169}
170
171func (v Value) ContainerIter() scode.Iter {
172 return v.Bytes().Iter()

Callers 1

StringMethod · 0.95

Calls 2

BytesMethod · 0.95
AppendFunction · 0.92

Tested by

no test coverage detected