Documentation
¶
Overview ¶
Package reader decodes a variable from buffer
Index ¶
- type Reader
- func (r *Reader) Len() int
- func (r *Reader) Peek(n int) ([]byte, error)
- func (r *Reader) PeekUint16() (res uint16, err error)
- func (r *Reader) Read(n int) ([]byte, error)
- func (r *Reader) ReadCount() int
- func (r *Reader) Uint8() (uint8, error)
- func (r *Reader) Uint16() (uint16, error)
- func (r *Reader) Uint32() (uint32, error)
- func (r *Reader) Uint64() (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader represents the data bytes for reading
func (*Reader) PeekUint16 ¶
PeekUint16 peeks the next two bytes interpreted as big-endian two-byte integer
func (*Reader) ReadCount ¶
ReadCount returns the number of bytes that have been read from this Reader in total
Click to show internal directories.
Click to hide internal directories.