nbt

package
v0.0.0-...-db94c25 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2010 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Tag types
	TagEnd       = 0
	TagByte      = 1
	TagShort     = 2
	TagInt       = 3
	TagLong      = 4
	TagFloat     = 5
	TagDouble    = 6
	TagByteArray = 7
	TagString    = 8
	TagList      = 9
	TagCompound  = 10
	TagNamed     = 0x80
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Byte

type Byte struct {
	Value int8
}

func (*Byte) GetType

func (*Byte) GetType() byte

func (*Byte) Lookup

func (*Byte) Lookup(path string) Tag

func (*Byte) Read

func (b *Byte) Read(reader io.Reader) (err os.Error)

type ByteArray

type ByteArray struct {
	Value []byte
}

func (*ByteArray) GetType

func (*ByteArray) GetType() byte

func (*ByteArray) Lookup

func (*ByteArray) Lookup(path string) Tag

func (*ByteArray) Read

func (b *ByteArray) Read(reader io.Reader) (err os.Error)

type Compound

type Compound struct {
	// contains filtered or unexported fields
}

func (*Compound) GetType

func (*Compound) GetType() byte

func (*Compound) Lookup

func (c *Compound) Lookup(path string) (tag Tag)

func (*Compound) Read

func (c *Compound) Read(reader io.Reader) (err os.Error)

type Double

type Double struct {
	Value float64
}

func (*Double) GetType

func (*Double) GetType() byte

func (*Double) Lookup

func (*Double) Lookup(path string) Tag

func (*Double) Read

func (d *Double) Read(reader io.Reader) (err os.Error)

type End

type End struct {
}

func (*End) GetType

func (end *End) GetType() byte

func (*End) Lookup

func (end *End) Lookup(path string) Tag

func (*End) Read

func (end *End) Read(io.Reader) os.Error

type Float

type Float struct {
	Value float32
}

func (*Float) GetType

func (*Float) GetType() byte

func (*Float) Lookup

func (*Float) Lookup(path string) Tag

func (*Float) Read

func (f *Float) Read(reader io.Reader) (err os.Error)

type Int

type Int struct {
	Value int32
}

func (*Int) GetType

func (*Int) GetType() byte

func (*Int) Lookup

func (*Int) Lookup(path string) Tag

func (*Int) Read

func (i *Int) Read(reader io.Reader) (err os.Error)

type List

type List struct {
	Value []Tag
}

func (*List) GetType

func (*List) GetType() byte

func (*List) Lookup

func (*List) Lookup(path string) Tag

func (*List) Read

func (l *List) Read(reader io.Reader) (err os.Error)

type Long

type Long struct {
	Value int64
}

func (*Long) GetType

func (*Long) GetType() byte

func (*Long) Lookup

func (*Long) Lookup(path string) Tag

func (*Long) Read

func (l *Long) Read(reader io.Reader) (err os.Error)

type NamedTag

type NamedTag struct {
	// contains filtered or unexported fields
}

func Read

func Read(reader io.Reader) (compound *NamedTag, err os.Error)

func (*NamedTag) GetType

func (n *NamedTag) GetType() byte

func (*NamedTag) Lookup

func (n *NamedTag) Lookup(path string) Tag

func (*NamedTag) Read

func (n *NamedTag) Read(reader io.Reader) (err os.Error)

type Short

type Short struct {
	Value int16
}

func (*Short) GetType

func (*Short) GetType() byte

func (*Short) Lookup

func (*Short) Lookup(path string) Tag

func (*Short) Read

func (s *Short) Read(reader io.Reader) (err os.Error)

type String

type String struct {
	Value string
}

func (*String) GetType

func (*String) GetType() byte

func (*String) Lookup

func (*String) Lookup(path string) Tag

func (*String) Read

func (s *String) Read(reader io.Reader) (err os.Error)

type Tag

type Tag interface {
	GetType() byte
	Read(io.Reader) os.Error
	Lookup(path string) Tag
}

func NewTagByType

func NewTagByType(tagType byte) (tag Tag)

Jump to

Keyboard shortcuts

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