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) Uint16() (uint16, error)
- func (r *Reader) Uint32() (uint32, error)
- func (r *Reader) Uint64() (uint64, error)
- func (r *Reader) Uint8() (uint8, 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) Peek ¶ added in v0.4.1
Peek returns the next n bytes in the reader without advancing in the stream
func (*Reader) PeekUint16 ¶ added in v0.4.1
PeekUint16 peeks the next two bytes interpreted as big-endian two-byte integer
func (*Reader) ReadCount ¶ added in v0.4.1
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.