MCPcopy Create free account
hub / github.com/segmentio/encoding / Write

Method Write

json/json_test.go:677–680  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

675type buffer struct{ data []byte }
676
677func (buf *buffer) Write(b []byte) (int, error) {
678 buf.data = append(buf.data, b...)
679 return len(b), nil
680}
681
682func (buf *buffer) WriteString(s string) (int, error) {
683 buf.data = append(buf.data, s...)

Callers 6

writeMethod · 0.80
BenchmarkCodeDecoderFunction · 0.80
ExampleMarshalFunction · 0.80
TestHTMLEscapeFunction · 0.80
EncodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected