Documentation ¶
Index ¶
- Constants
- func ReadBool(reader io.Reader) (val bool, err error)
- func ReadByte(reader io.Reader) (val byte, err error)
- func ReadBytes(rd io.Reader) ([]byte, error)
- func ReadBytes17(rd io.Reader) ([]byte, error)
- func ReadBytesLen(rd io.Reader, maxLength int) (bytes []byte, err error)
- func ReadExtendedForgeShort(rd io.Reader) (int, error)
- func ReadFloat32(reader io.Reader) (val float32, err error)
- func ReadFloat64(reader io.Reader) (val float64, err error)
- func ReadInt(rd io.Reader) (int, error)
- func ReadInt16(reader io.Reader) (val int16, err error)
- func ReadInt32(reader io.Reader) (val int32, err error)
- func ReadInt64(reader io.Reader) (val int64, err error)
- func ReadInt8(reader io.Reader) (val int8, err error)
- func ReadString(rd io.Reader) (string, error)
- func ReadStringArray(rd io.Reader) ([]string, error)
- func ReadStringMax(rd io.Reader, max int) (string, error)
- func ReadStringWithoutLen(rd io.Reader) (string, error)
- func ReadUint16(reader io.Reader) (val uint16, err error)
- func ReadUint32(reader io.Reader) (val uint32, err error)
- func ReadUint64(reader io.Reader) (val uint64, err error)
- func ReadUint8(reader io.Reader) (val uint8, err error)
- func ReadUuid(rd io.Reader) (id uuid.UUID, err error)
- func ReadVarInt(r io.Reader) (result int, err error)
- func WriteBool(writer io.Writer, val bool) (err error)
- func WriteByte(writer io.Writer, val byte) (err error)
- func WriteBytes(wr io.Writer, b []byte) (err error)
- func WriteBytes17(wr io.Writer, b []byte, allowExtended bool) error
- func WriteExtendedForgeShort(wr io.Writer, toWrite int) (err error)
- func WriteFloat32(writer io.Writer, val float32) (err error)
- func WriteFloat64(writer io.Writer, val float64) (err error)
- func WriteInt16(writer io.Writer, val int16) (err error)
- func WriteInt32(writer io.Writer, val int32) (err error)
- func WriteInt64(writer io.Writer, val int64) (err error)
- func WriteInt8(writer io.Writer, val int8) (err error)
- func WriteProperties(wr io.Writer, properties []*gameprofile.Property) error
- func WriteString(writer io.Writer, val string) (err error)
- func WriteStrings(wr io.Writer, a []string) error
- func WriteUint16(writer io.Writer, val uint16) (err error)
- func WriteUint32(writer io.Writer, val uint32) (err error)
- func WriteUint64(writer io.Writer, val uint64) (err error)
- func WriteUint8(writer io.Writer, val uint8) (err error)
- func WriteUuid(wr io.Writer, uuid uuid.UUID) error
- func WriteVarInt(writer io.Writer, val int) (err error)
Constants ¶
View Source
const ForgeMaxArrayLength = math.MaxInt32 & 0x1FFF9A
Variables ¶
This section is empty.
Functions ¶
func ReadBytes17 ¶
ReadRetainedByteBufSlice17 reads bytes with the Minecraft 1.7 style length.
func ReadExtendedForgeShort ¶
ReadExtendedForgeShort reads a Minecraft-style extended short from the specified {@code buf}.
func ReadStringWithoutLen ¶
Reads a non length-prefixed string from the Reader. We need this for the legacy 1.7 version, being inconsistent when sending the plugin message channel brand.
func WriteProperties ¶
func WriteProperties(wr io.Writer, properties []*gameprofile.Property) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.