MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Append

Method Append

pkg/util/json/tokenizer/buffer.go:40–46  ·  view source on GitHub ↗

Append appends buf to this buffer.

(buf []byte)

Source from the content-addressed store, hash-verified

38
39// Append appends buf to this buffer.
40func (b *buffer) Append(buf []byte) {
41 if cap(b.buf)-b.l <= len(buf) {
42 b.buf = grow(b.buf, len(buf))
43 }
44 copy(b.buf[b.l:], buf)
45 b.l += len(buf)
46}
47
48// AppendRune writes rune to this buffer.
49func (b *buffer) AppendRune(r rune) {

Callers 2

decimalEandMFunction · 0.45
parseStringSlowMethod · 0.45

Calls 1

growFunction · 0.85

Tested by

no test coverage detected