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, error)
Types ¶
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, error)
func (VarInt) ByteLength ¶
Click to show internal directories.
Click to hide internal directories.