nbt

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TagEnd tagID = iota
	TagByte
	TagShort
	TagInt
	TagLong
	TagFloat
	TagDouble
	TagByteArray
	TagString
	TagList
	TagCompound
	TagIntArray
	TagLongArray
)

Variables

This section is empty.

Functions

func Encode

func Encode(c Compound, w io.Writer) error

func EncodeGzip

func EncodeGzip(c Compound, w io.Writer) error

func EncodeZlib

func EncodeZlib(c Compound, w io.Writer) error

Types

type Compound

type Compound map[string]interface{}

func Parse

func Parse(r io.Reader) (out Compound, err error)

Parse parses nbt from io.Reader

func ParseGzip

func ParseGzip(r io.Reader) (out Compound, err error)

ParseGzip parses a gzip compressed nbt input stream

func ParseZlib

func ParseZlib(r io.Reader) (out Compound, err error)

ParseGzip parses a zlib compressed nbt input stream

type List

type List []interface{}

Jump to

Keyboard shortcuts

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