structs

package
v0.0.0-...-e5bd0a5 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	START_NAMESPACE_CHUNK = 0x00100100
	END_NAMESPACE_CHUNK   = 0x00100101
	START_TAG_CHUNK       = 0x00100102
	END_TAG_CHUNK         = 0x00100103
	TEXT_CHUNK            = 0x00100104
)

Variables

This section is empty.

Functions

func ReadContentChunks

func ReadContentChunks(buffer *bytes.Buffer) []interface{}

func ReadUtf16String

func ReadUtf16String(buffer *bytes.Buffer, offset uint32) string

Types

type Attribute

type Attribute struct {
	NamespaceUri uint32
	Name         uint32
	ValueString  uint32
	Type         uint32
	Data         uint32
}

type EndNamespaceChunk

type EndNamespaceChunk StartNamespaceChunk

type EndTagChunk

type EndTagChunk StartNamespaceChunk
type Header struct {
	Magic    uint32
	FileSize uint32
}

func ParseHeader

func ParseHeader(buffer *bytes.Buffer) Header

func (Header) String

func (header Header) String() string

type ResourceIdChunk

type ResourceIdChunk struct {
	Signature uint32
	Size      uint32
	Items     []uint32
}

func ParseResourceIdChunk

func ParseResourceIdChunk(buffer *bytes.Buffer) (resourceChunk ResourceIdChunk)

type StartNamespaceChunk

type StartNamespaceChunk struct {
	Type       uint32
	Size       uint32
	LineNumber uint32
	Comment    uint32
	Prefix     uint32
	Uri        uint32
}

type StartTagChunk

type StartTagChunk struct {
	Type           uint32
	Size           uint32
	LineNumber     uint32
	UNKNOWN        uint32
	NameSpaceUri   uint32
	Name           uint32
	Flags          uint32
	AttributeCount uint32
	ClassAttribute uint32
	Attributes     []Attribute
}

type StringChunk

type StringChunk struct {
	Signature        uint32
	Size             uint32
	StringCount      uint32
	StyleCount       uint32
	Flags            uint32
	StringPoolOffset uint32
	StylePoolOffset  uint32
	StringOffsets    []uint32
	Utf8Strings      []string
}

func ParseStringChunk

func ParseStringChunk(buffer *bytes.Buffer) StringChunk

type TextChunk

type TextChunk struct {
	Signature  uint32
	Size       uint32
	LineNumber uint32
	Unknown1   uint32
	Name       uint32
	Unknown2   uint32
	Unknown3   uint32
}

Jump to

Keyboard shortcuts

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