types

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotSlice           = errors.New("mcproto: struct field is not a slice")
	ErrMissingLen         = errors.New("mcproto: missing len struct tag where absolutely necessary")
	ErrIncorrectFieldType = errors.New(
		"mcproto: the target field type does not correspond to the one specified in the type tag",
	)
)

Functions

func DeserializeArray

func DeserializeArray(field reflect.Value, length int, databuf *bytes.Buffer, DeserializeFields serializer) error

func DeserializeBytes

func DeserializeBytes(field reflect.Value, length int, databuf *bytes.Buffer) error

func DeserializeIgnore

func DeserializeIgnore(ignoreLen int, databuf *bytes.Buffer) error

func DeserializeInherit

func DeserializeInherit(field reflect.Value, databuf *bytes.Buffer) error

func DeserializeNbt

func DeserializeNbt(field reflect.Value, length int, databuf *bytes.Buffer) error

func DeserializeString

func DeserializeString(field reflect.Value, databuf *bytes.Buffer) error

func DeserializeVarInt added in v0.1.1

func DeserializeVarInt(field reflect.Value, databuf *bytes.Buffer) error

func DeserializeVarLong added in v0.1.1

func DeserializeVarLong(field reflect.Value, databuf *bytes.Buffer) error

func SerializeArray

func SerializeArray(field reflect.Value, databuf *bytes.Buffer, SerializeFields serializer) error

func SerializeBytes

func SerializeBytes(field reflect.Value, databuf *bytes.Buffer) error

func SerializeIgnore

func SerializeIgnore(ignoreLen int, databuf *bytes.Buffer) error

func SerializeInherit

func SerializeInherit(field reflect.Value, databuf *bytes.Buffer) error

func SerializeNbt

func SerializeNbt(field reflect.Value, databuf *bytes.Buffer) error

func SerializeString

func SerializeString(field reflect.Value, databuf *bytes.Buffer) error

func SerializeVarInt

func SerializeVarInt(field reflect.Value, databuf *bytes.Buffer) error

func SerializeVarLong added in v0.1.1

func SerializeVarLong(field reflect.Value, databuf *bytes.Buffer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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