MCPcopy Index your code
hub / github.com/tinylib/msgp / MarshalJSON

Method MarshalJSON

msgp/read_bytes.go:150–154  ·  view source on GitHub ↗

MarshalJSON implements [json.Marshaler].

()

Source from the content-addressed store, hash-verified

148
149// MarshalJSON implements [json.Marshaler].
150func (r *Raw) MarshalJSON() ([]byte, error) {
151 var buf bytes.Buffer
152 _, err := UnmarshalAsJSON(&buf, []byte(*r))
153 return buf.Bytes(), err
154}
155
156// ReadMapHeaderBytes reads a map header size
157// from 'b' and returns the remaining bytes.

Callers

nothing calls this directly

Calls 1

UnmarshalAsJSONFunction · 0.85

Tested by

no test coverage detected