pkgb

package
v0.0.0-...-ecbebe3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pkgb is a package builder for minecraft protocol

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

func B

func B() *Builder

func (*Builder) Append

func (b *Builder) Append(bs []byte) *Builder

func (*Builder) AppendString

func (b *Builder) AppendString(s string) *Builder

func (*Builder) AppendUint32

func (b *Builder) AppendUint32(u uint32, order binary.ByteOrder) *Builder

func (*Builder) AppendUint64

func (b *Builder) AppendUint64(u uint64, order binary.ByteOrder) *Builder

func (*Builder) Build

func (b *Builder) Build() *PKG

func (*Builder) PackageID

func (b *Builder) PackageID(v uint32) *Builder

type PKG

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

func (*PKG) Bytes

func (p *PKG) Bytes() []byte

func (*PKG) Grow

func (p *PKG) Grow(n int)

func (*PKG) Len

func (p *PKG) Len() int

func (*PKG) READONLY

func (p *PKG) READONLY() bool

func (*PKG) Write

func (p *PKG) Write(bs []byte) (n int, err error)

func (*PKG) WriteOnIndex

func (p *PKG) WriteOnIndex(idx int, bs []byte)

Jump to

Keyboard shortcuts

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