MCPcopy Create free account
hub / github.com/francoispqt/gojay / writeByte

Method writeByte

encode_builder.go:28–30  ·  view source on GitHub ↗

WriteByte appends the byte c to b's Buffer. The returned error is always nil.

(c byte)

Source from the content-addressed store, hash-verified

26// WriteByte appends the byte c to b's Buffer.
27// The returned error is always nil.
28func (enc *Encoder) writeByte(c byte) {
29 enc.buf = append(enc.buf, c)
30}
31
32// WriteString appends the contents of s to b's Buffer.
33// It returns the length of s and a nil error.

Callers 15

Uint64Method · 0.95
Uint64OmitEmptyMethod · 0.95
Uint64NullEmptyMethod · 0.95
Uint64KeyMethod · 0.95
Uint64KeyOmitEmptyMethod · 0.95
Uint64KeyNullEmptyMethod · 0.95
IntMethod · 0.95
IntOmitEmptyMethod · 0.95
IntNullEmptyMethod · 0.95
IntKeyMethod · 0.95
IntKeyOmitEmptyMethod · 0.95
IntKeyNullEmptyMethod · 0.95

Calls

no outgoing calls

Tested by 3

TestEncodeObjectWithKeysFunction · 0.76
TestAddNumberFuncFunction · 0.64
TestUint64AddFunction · 0.64