MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / PeekCode

Method PeekCode

decode.go:586–592  ·  view source on GitHub ↗

PeekCode returns the next MessagePack code without advancing the reader. Subpackage msgpack/codes defines the list of available msgpcode.

()

Source from the content-addressed store, hash-verified

584// PeekCode returns the next MessagePack code without advancing the reader.
585// Subpackage msgpack/codes defines the list of available msgpcode.
586func (d *Decoder) PeekCode() (byte, error) {
587 c, err := d.s.ReadByte()
588 if err != nil {
589 return 0, err
590 }
591 return c, d.s.UnreadByte()
592}
593
594// ReadFull reads exactly len(buf) bytes into the buf.
595func (d *Decoder) ReadFull(buf []byte) error {

Callers 2

queryMethod · 0.95
hasNilCodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected