kbinxml

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TYPE_S8     = 2
	TYPE_U8     = 3
	TYPE_S16    = 4
	TYPE_U16    = 5
	TYPE_S32    = 6
	TYPE_U32    = 7
	TYPE_S64    = 8
	TYPE_U64    = 9
	TYPE_BIN    = 10
	TYPE_STR    = 11
	TYPE_IP4    = 12
	TYPE_TIME   = 13
	TYPE_FLOAT  = 14
	TYPE_DOUBLE = 15
	TYPE_2S8    = 16
	TYPE_2U8    = 17
	TYPE_2S16   = 18
	TYPE_2U16   = 19
	TYPE_2S32   = 20
	TYPE_2U32   = 21
	TYPE_2S64   = 22
	TYPE_2U64   = 23
	TYPE_2F     = 24
	TYPE_2D     = 25
	TYPE_3S8    = 26
	TYPE_3U8    = 27
	TYPE_3S16   = 28
	TYPE_3U16   = 29
	TYPE_3S32   = 30
	TYPE_3U32   = 31
	TYPE_3S64   = 32
	TYPE_3U64   = 33
	TYPE_3F     = 34
	TYPE_3D     = 35
	TYPE_4S8    = 36
	TYPE_4U8    = 37
	TYPE_4S16   = 38
	TYPE_4U16   = 39
	TYPE_4S32   = 40
	TYPE_4U32   = 41
	TYPE_4S64   = 42
	TYPE_4U64   = 43
	TYPE_4F     = 44
	TYPE_4D     = 45
	TYPE_VS8    = 48
	TYPE_VU8    = 49
	TYPE_VS16   = 50
	TYPE_VU16   = 51
	TYPE_BOOL   = 52
	TYPE_2B     = 53
	TYPE_3B     = 54
	TYPE_4B     = 55
	TYPE_VB     = 56
)
View Source
const (
	EncodingNone = iota
	EncodingASCII
	EncodingISO_8859_1
	EncodingEUC_JP
	EncodingSHIFT_JIS
	EncodingUTF_8
)
View Source
const MagicNumber = 0xa042

Variables

This section is empty.

Functions

func SerializeKbin

func SerializeKbin(document *etree.Document, encoding int) (output []byte)

Types

type ByteOffsets

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

func (*ByteOffsets) Align

func (b *ByteOffsets) Align(reader io.Seeker)

type IterWalker

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

IterWalker structure

func IterWalk

func IterWalk(doc *etree.Document) *IterWalker

IterWalk through a xml document

func (*IterWalker) Walk

func (i *IterWalker) Walk() (node *etree.Element, event string)

Walk a step

type KbinEncoding

type KbinEncoding struct {
	ID      int
	Name    string
	Decoder *encoding.Decoder
	Encoder *encoding.Encoder
}

func DeserializeKbin

func DeserializeKbin(input []byte) ([]byte, *KbinEncoding, error)

type KbinNodeType

type KbinNodeType struct {
	Name   string
	Size   int
	Count  int
	Signed bool
}

Jump to

Keyboard shortcuts

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