MCPcopy
hub / github.com/tinylib/msgp / rwStringBytes

Function rwStringBytes

msgp/json_bytes.go:177–184  ·  view source on GitHub ↗
(w jsWriter, msg []byte, scratch []byte, depth int)

Source from the content-addressed store, hash-verified

175}
176
177func rwStringBytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) {
178 str, msg, err := ReadStringZC(msg)
179 if err != nil {
180 return msg, scratch, err
181 }
182 _, err = rwquoted(w, str)
183 return msg, scratch, err
184}
185
186func rwBytesBytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) {
187 bts, msg, err := ReadBytesZC(msg)

Callers 1

rwMapKeyBytesFunction · 0.85

Calls 2

ReadStringZCFunction · 0.85
rwquotedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…