nbt

package
v0.0.0-...-03afc55 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidCompound = errors.New("invalid compound")
)

Functions

This section is empty.

Types

type Compound

type Compound struct {
	Name  string
	Items map[string]interface{}
}

func NewCompound

func NewCompound() *Compound

func (*Compound) Deserialize

func (c *Compound) Deserialize(r io.Reader) error

func (*Compound) Serialize

func (c *Compound) Serialize(w io.Writer) error

type List

type List struct {
	Type     TypeID
	Elements []interface{}
}

type TypeID

type TypeID int
const (
	TagEnd TypeID = iota
	TagByte
	TagShort
	TagInt
	TagLong
	TagFloat
	TagDouble
	TagByteArray
	TagString
	TagList
	TagCompound
	TagIntArray
)

Jump to

Keyboard shortcuts

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