Documentation
¶
Index ¶
- Constants
- Variables
- func WriteString(w io.Writer, str String) error
- func WriteUnsignedByte(w io.Writer, value UnsignedByte) error
- func WriteUnsignedShort(buff io.Writer, value UnsignedShort) error
- func WriteVarInt(w io.Writer, value VarInt) error
- type String
- type UnsignedByte
- type UnsignedShort
- type VarInt
Constants ¶
View Source
const (
VarIntMaxByteSize = 5
)
Variables ¶
View Source
var ( // ErrVarIntTooLarge is returned when a read varint was too large // (more than 5 bytes) ErrVarIntTooLarge = errors.New("VarInt too large") )
Functions ¶
func WriteString ¶
WriteString writes a VarInt prefixed utf-8 string to the writer.
func WriteUnsignedByte ¶
func WriteUnsignedByte(w io.Writer, value UnsignedByte) error
func WriteUnsignedShort ¶
func WriteUnsignedShort(buff io.Writer, value UnsignedShort) error
WriteUnsignedShort writes the passed UnsignedShort to the writer
Types ¶
type UnsignedByte ¶
type UnsignedByte byte
Minecrat Protocol UnsignedByte type
func ReadUnsignedByte ¶
func ReadUnsignedByte(r io.Reader) (UnsignedByte, error)
type UnsignedShort ¶
type UnsignedShort uint16
Minecraft Protocol UnsignedShort type
func ReadUnsignedShort ¶
func ReadUnsignedShort(buff io.Reader) (UnsignedShort, error)
ReadUnsignedShort reads an UnsignedShort from the reader
Click to show internal directories.
Click to hide internal directories.