Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vmihailenco/msgpack
/ hasNilCode
Method
hasNilCode
decode.go:600–603 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
598
}
599
600
func
(d *Decoder) hasNilCode() bool {
601
code, err := d.PeekCode()
602
return
err == nil && code == msgpcode.Nil
603
}
604
605
func
(d *Decoder) readCode() (byte, error) {
606
c, err := d.s.ReadByte()
Callers
2
ptrValueDecoder
Function · 0.80
nilAwareDecoder
Function · 0.80
Calls
1
PeekCode
Method · 0.95
Tested by
no test coverage detected