Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidType = errors.New("invalid type")
)
Functions ¶
This section is empty.
Types ¶
type RawResTypeChunk ¶
type RawResTypeChunk struct { ID byte Flags byte Reserved uint16 EntryCount uint32 EntriesOffset uint32 ConfigSize uint32 }
func (*RawResTypeChunk) IsOffset16 ¶
func (r *RawResTypeChunk) IsOffset16() bool
func (*RawResTypeChunk) IsSparse ¶
func (r *RawResTypeChunk) IsSparse() bool
type RawTypeEntry ¶
func (*RawTypeEntry) IsCompact ¶
func (e *RawTypeEntry) IsCompact() bool
func (*RawTypeEntry) IsComplex ¶
func (e *RawTypeEntry) IsComplex() bool
type ResChunkFlag ¶
type ResChunkFlag byte
const ( FlagSparse ResChunkFlag = 0x01 FlagOffset16 ResChunkFlag = 0x02 )
type ResTypeChunk ¶
type ResTypeChunk struct { RawChunk RawResTypeChunk Entries []TypeEntryOffset // contains filtered or unexported fields }
func NewResTypeChunk ¶
func NewResTypeChunk(p internal.Parser, chunkEnd int64) (ResTypeChunk, error)
type ResTypeEntryFlag ¶
type ResTypeEntryFlag uint16
const ( FlagComplex ResTypeEntryFlag = 0x0001 FlagCompact ResTypeEntryFlag = 0x0008 )
type StringPool ¶
type StringPool struct {
// contains filtered or unexported fields
}
func NewStringPool ¶
func NewStringPool(p internal.Parser) (StringPool, error)
type Table ¶
type Table struct { Strings StringPool StringsByID map[uint32]string StringsByName map[string]string }
type TypeEntryOffset ¶
Click to show internal directories.
Click to hide internal directories.