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

Function IsNil

msgp/read_bytes.go:48–53  ·  view source on GitHub ↗

IsNil returns true if len(b)>0 and the leading byte is a 'nil' MessagePack byte; false otherwise

(b []byte)

Source from the content-addressed store, hash-verified

46// the leading byte is a 'nil' MessagePack
47// byte; false otherwise
48func IsNil(b []byte) bool {
49 if len(b) != 0 && b[0] == mnil {
50 return true
51 }
52 return false
53}
54
55// Raw is raw MessagePack.
56// Raw allows you to read and write

Callers 15

UnmarshalMsgMethod · 0.92
UnmarshalMsgMethod · 0.92
UnmarshalMsgMethod · 0.92
UnmarshalMsgMethod · 0.92
UnmarshalMsgMethod · 0.92
UnmarshalMsgMethod · 0.92
UnmarshalMsgMethod · 0.92
UnmarshalMsgMethod · 0.92
UnmarshalMsgMethod · 0.92
UnmarshalMsgMethod · 0.92
UnmarshalMsgMethod · 0.92
UnmarshalMsgMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…