PeekCode returns the next MessagePack code without advancing the reader. Subpackage msgpack/codes defines the list of available msgpcode.
()
| 584 | // PeekCode returns the next MessagePack code without advancing the reader. |
| 585 | // Subpackage msgpack/codes defines the list of available msgpcode. |
| 586 | func (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. |
| 595 | func (d *Decoder) ReadFull(buf []byte) error { |
no outgoing calls
no test coverage detected