Documentation
¶
Index ¶
- Variables
- func GetExternalIndex(index int) int
- func IntToByteArray(num int64, length int) []byte
- func IntToCompactIndex(integer int) []byte
- func ReadCompactIndex(reader *bytes.Reader) (int, int)
- func ReadName(reader *bytes.Reader) (uint8, string)
- func ReadNextBytes(file *os.File, params ...int) []byte
- func SetExportCount(file *os.File, expCnt []byte) error
- func SetExportOffset(file *os.File, expOfs []byte) error
- func SetGenerations(file *os.File, genCnt int, expCnt []byte, nameCnt []byte) error
- func SetImportCount(file *os.File, impCnt []byte) error
- func SetImportOffset(file *os.File, impOfs []byte) error
- func SetNameCount(file *os.File, nameCnt []byte) error
- func SetNameOffset(file *os.File, nameOfs []byte) error
- type Export
- type Header
- type Import
- type Name
- type PackageData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HeaderSize = 64 SignatureOfs = 0x00 VersionOfs = 0x04 PkgFlagsOfs = 0x08 NameCountOfs = 0x0c NameOffsetOfs = 0x10 ExportCountOfs = 0x14 ExportOffsetOfs = 0x18 ImportCountOfs = 0x1C ImportOffsetOfs = 0x20 GUIDOfs = 0x24 GenerationsOfs = 0x34 )
Functions ¶
func GetExternalIndex ¶
Get an External Index from a given integer
func IntToByteArray ¶
Transforms a int64 to a byte array given a delim
func IntToCompactIndex ¶
Read an int and returns a Compact Index as byte array
func ReadCompactIndex ¶
Reads byte from a buffer and returns an uncompacted index as int Due the variable length of a CompactIndex, this function moves forward the pointer of the passed reader
func ReadName ¶
Reads byte from a buffer and returns a name string Due the variable length of a Name, this function moves forward the pointer of the passed reader
func ReadNextBytes ¶
Read the next bytes with additional delim and offset options Params: file *os.File, delim int, offset int
func SetGenerations ¶
Types ¶
type Export ¶
type Header ¶
type Header struct { Signature uint32 PackageVersion uint16 LicenseeVersion uint16 PackageFlags uint32 NameCount uint32 NameOffset uint32 ExportCount uint32 ExportOffset uint32 ImportCount uint32 ImportOffset uint32 GUID dsp0134.UUID //DSP0134 standard GenerationCount uint32 GenerationInfos struct { ExportCount uint32 NameCount uint32 } }
func PackageHeaderParser ¶
type Import ¶
Click to show internal directories.
Click to hide internal directories.