Documentation ¶
Index ¶
Constants ¶
View Source
const (
MaxPacket = 1 << 21
)
Variables ¶
This section is empty.
Functions ¶
func VarIntSize ¶
VarIntSize returns the number of bytes n takes up
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func (*Decoder) DecodePacket ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) EnableEncryption ¶
func (*Encoder) EncodePacket ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) Next ¶
Next returns the next n bytes in the buffer and advances the reader. If n is bigger than the buffer then it returns bufio.ErrBufferFull without data and won't advance the reader.
func (*Reader) ReadVarInt ¶
Click to show internal directories.
Click to hide internal directories.