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

Function Append

scode/bytes.go:41–47  ·  view source on GitHub ↗

Append appends val to dst as a tagged value and returns the extended buffer.

(dst Bytes, val []byte)

Source from the content-addressed store, hash-verified

39// Append appends val to dst as a tagged value and returns the
40// extended buffer.
41func Append(dst Bytes, val []byte) Bytes {
42 if val == nil {
43 return binary.AppendUvarint(dst, tagNull)
44 }
45 dst = binary.AppendUvarint(dst, toTag(len(val)))
46 return append(dst, val...)
47}
48
49// SizeOfUvarint returns the number of bytes required by binary.AppendUvarint to
50// represent u64.

Callers 15

EncodeMethod · 0.92
TestNormalizeSetFunction · 0.92
recodeFunction · 0.92
runCasesHelperFunction · 0.92
toArrayOrSetMethod · 0.92
toMapMethod · 0.92
CallMethod · 0.92
ConsumeMethod · 0.92
ConsumeMethod · 0.92
WriteMethod · 0.92
WriteBytesMethod · 0.92
WriteMethod · 0.92

Calls 1

toTagFunction · 0.85

Tested by 4

TestNormalizeSetFunction · 0.74
runCasesHelperFunction · 0.74
TestAppendFunction · 0.68
TestBuilderFunction · 0.68