codec

package
v0.0.0-...-55cdb59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v interface{}) []byte

func ReadBool

func ReadBool(buf *bytes.Buffer) bool

func ReadFloat32

func ReadFloat32(buf *bytes.Buffer) float32

func ReadFloat64

func ReadFloat64(buf *bytes.Buffer) float64

func ReadInt16

func ReadInt16(buf *bytes.Buffer) int16

func ReadInt32

func ReadInt32(buf *bytes.Buffer) int32

func ReadInt64

func ReadInt64(buf *bytes.Buffer) int64

func ReadInt8

func ReadInt8(buf *bytes.Buffer) int8

func ReadString

func ReadString(buf *bytes.Buffer) string

func ReadUint16

func ReadUint16(buf *bytes.Buffer) uint16

func ReadUint32

func ReadUint32(buf *bytes.Buffer) uint32

func ReadUint64

func ReadUint64(buf *bytes.Buffer) uint64

func ReadUint8

func ReadUint8(buf *bytes.Buffer) uint8

func ReadVarInt32

func ReadVarInt32(buf *bytes.Buffer) int32

func ReadVarInt64

func ReadVarInt64(buf *bytes.Buffer) int64

func Unmarshal

func Unmarshal(data []byte, val reflect.Value) error

func WriteBool

func WriteBool(v bool) []byte

func WriteFloat32

func WriteFloat32(v float32) []byte

func WriteFloat64

func WriteFloat64(v float64) []byte

func WriteInt16

func WriteInt16(v int16) []byte

func WriteInt32

func WriteInt32(v int32) []byte

func WriteInt64

func WriteInt64(v int64) []byte

func WriteInt8

func WriteInt8(v int8) []byte

func WriteString

func WriteString(v string) []byte

func WriteUint16

func WriteUint16(v uint16) []byte

func WriteUint32

func WriteUint32(v uint32) []byte

func WriteUint64

func WriteUint64(v uint64) []byte

func WriteUint8

func WriteUint8(v uint8) []byte

func WriteVarInt32

func WriteVarInt32(v int32) []byte

func WriteVarInt64

func WriteVarInt64(v int64) []byte

Types

type Marshaler

type Marshaler interface {
	MarshalMinecraft() ([]byte, error)
}

type Unmarshaler

type Unmarshaler interface {
	UnmarshalMinecraft(buf *bytes.Buffer) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL