MCPcopy Create free account
hub / github.com/go-json-experiment/json / AvailableBuffer

Method AvailableBuffer

jsontext/encode.go:919–931  ·  view source on GitHub ↗

AvailableBuffer returns a zero-length buffer with a possible non-zero capacity. This buffer is intended to be used to populate a [Value] being passed to an immediately succeeding [Encoder.WriteValue] call. Example usage: b := e.AvailableBuffer() b = append(b, '"') b = appendString(b, v) // appe

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

TestEncoderResetFunction · 0.95
HTMLEscapeFunction · 0.80
CompactFunction · 0.80
IndentFunction · 0.80
MarshalJSONToMethod · 0.80
resetMethod · 0.80
FlushMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestEncoderResetFunction · 0.76