xmlb

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte) ([]byte, error)

Types

type DataMap

type DataMap map[int32]string

type Node

type Node struct {
	NodeNameOffset      int32
	ContentOffset       int32
	AttributeCount      int16
	ChildCount          int16
	ParentNodeID        int32
	FirstAttributeIndex int32
	FirstChildIndex     int32
	Reserved            int32
}

type Parser

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

func NewParser

func NewParser(s *stream.Stream) (*Parser, error)

func (*Parser) GetAttr

func (p *Parser) GetAttr(id int32) (name, value string)

func (*Parser) NodeContent

func (p *Parser) NodeContent(n Node) string

func (*Parser) NodeName

func (p *Parser) NodeName(n Node) string

func (*Parser) ReadNodes

func (p *Parser) ReadNodes() []Node

type Reference

type Reference struct {
	NameOffset  int32
	ValueOffset int32
}

Jump to

Keyboard shortcuts

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