Documentation
¶
Index ¶
- func ChunkPayload(c *chunk.Chunk, e chunk.Encoding) (subChunks [][]byte, r define.Range)
- func FromChunkPayload(subChunks [][]byte, r define.Range, e chunk.Encoding) (c *chunk.Chunk, err error)
- func Gzip(in []byte) (result []byte, err error)
- func MarshalNBT(writer *bytes.Buffer, value any, name string)
- func Uint32BinaryAdd(uint32Bytes []byte, defaultIfNotExist []byte, delta int32) []byte
- func Ungzip(in []byte) (result []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChunkPayload ¶
ChunkPayload ..
func FromChunkPayload ¶
func FromChunkPayload(subChunks [][]byte, r define.Range, e chunk.Encoding) (c *chunk.Chunk, err error)
FromChunkPayload ..
func MarshalNBT ¶
MarshalNBT marshal value as its little endian NBT represents to writer. Note that this implements is stable because the key in TAG_Compound is sorted. Other features are same to NBT implement on gophertunnel.
func Uint32BinaryAdd ¶
Uint32BinaryAdd decode a little endian uint32Bytes as uint32, and computes the result of uint32+delta, and then return its little endian bytes result. If len(uint32Bytes) < 4, then use defaultIfNotExist instead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.