MCPcopy Index your code
hub / github.com/segmentio/encoding / decodeNull

Method decodeNull

json/decode.go:24–29  ·  view source on GitHub ↗
(b []byte, p unsafe.Pointer)

Source from the content-addressed store, hash-verified

22}
23
24func (d decoder) decodeNull(b []byte, p unsafe.Pointer) ([]byte, error) {
25 if hasNullPrefix(b) {
26 return b[4:], nil
27 }
28 return d.inputError(b, nullType)
29}
30
31func (d decoder) decodeBool(b []byte, p unsafe.Pointer) ([]byte, error) {
32 switch {

Callers

nothing calls this directly

Calls 2

inputErrorMethod · 0.95
hasNullPrefixFunction · 0.85

Tested by

no test coverage detected