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

Function rwBoolBytes

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

Source from the content-addressed store, hash-verified

217}
218
219func rwBoolBytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) {
220 b, msg, err := ReadBoolBytes(msg)
221 if err != nil {
222 return msg, scratch, err
223 }
224 if b {
225 _, err = w.WriteString("true")
226 return msg, scratch, err
227 }
228 _, err = w.WriteString("false")
229 return msg, scratch, err
230}
231
232func rwIntBytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) {
233 i, msg, err := ReadInt64Bytes(msg)

Callers

nothing calls this directly

Calls 2

ReadBoolBytesFunction · 0.85
WriteStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…