Documentation ¶
Index ¶
Constants ¶
View Source
const VarContinueBit = 0x80
View Source
const VarSegmentBits = 0x7F
Variables ¶
View Source
var IdentifierNameSpaceRegex = regexp.MustCompile(`^[a-z0-9._-]+$`)
View Source
var IdentifierValueRegex = regexp.MustCompile(`^[a-z0-9/._-]+$`)
Functions ¶
func DecodeMCString ¶
func DecodeMCString(input io.ByteReader) (*string, int, error)
Types ¶
type BitSet ¶ added in v1.0.2
type BitSet struct {
Data []uint64 // Can't inline type, since we need to change this value in the methods
}
type Identifier ¶
type Identifier string
func (Identifier) ValidateNameSpace ¶
func (i Identifier) ValidateNameSpace() error
func (Identifier) ValidateValue ¶
func (i Identifier) ValidateValue() error
type VarInt ¶
type VarInt int32
func DecodeVarInt ¶
func DecodeVarInt(input io.ByteReader) (*VarInt, int, error)
func (VarInt) ByteLength ¶
Click to show internal directories.
Click to hide internal directories.