Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeUTF16(b []byte) (string, error)
- func GetAllInfocards(filesystem *filefind.Filesystem, dll_names []string) *infocard.Config
- func GetResource(data []byte, out *infocard.Config, absloc int, datatype *DataType, idnum int, ...) error
- func JoinSize(size int, s ...[]byte) []byte
- func MakeArray(bytes_amount BytesToRead) []byte
- func ParseDLLs(dll_fnames []*file.File) *infocard.Config
- func ReadText(fh *bytes.Reader, count int) string
- func ReadUnpack[returnType any](fh *bytes.Reader, bytes_amount BytesToRead, format []string) (returnType, int, error)
- func ReadUnpack2[returnType any](fh *bytes.Reader, bytes_amount BytesToRead, format []string) returnType
- func ReadUnpackWithArr[returnType any](fh *bytes.Reader, byte_data []byte, format []string) (returnType, int, error)
- func Unpack[returnType any](format []string, byte_data []byte) (returnType, error)
- type BytesToRead
- type Config
- type DLLSection
- type DataType
- type Resources
Constants ¶
View Source
const ( FILENAME_FL_INI = "freelancer.ini" RESOURCE_HEADER inireader_types.IniHeader = "[Resources]" RESOURCE_KEY_DLL = "dll" )
View Source
const SEEK_SET = io.SeekStart // python default seek(offset, whence=os.SEEK_SET, /)
Variables ¶
View Source
var BOMcheck []byte = []byte{'\xff', '\xfe'}
View Source
var KEY_BASE_TERRAINS = [...]string{"terrain_tiny", "terrain_sml", "terrain_mdm", "terrain_lrg", "terrain_dyna_01", "terrain_dyna_02"}
Functions ¶
func DecodeUTF16 ¶ added in v0.6.0
func GetAllInfocards ¶
func GetAllInfocards(filesystem *filefind.Filesystem, dll_names []string) *infocard.Config
func GetResource ¶
func MakeArray ¶
func MakeArray(bytes_amount BytesToRead) []byte
func ReadUnpack ¶
func ReadUnpack2 ¶
func ReadUnpack2[returnType any]( fh *bytes.Reader, bytes_amount BytesToRead, format []string) returnType
func ReadUnpackWithArr ¶
Types ¶
type BytesToRead ¶
type BytesToRead int
type Config ¶
type Config struct { semantic.ConfigModel Resources Resources }
func FixtureFLINIConfig ¶
func FixtureFLINIConfig() *Config
type DLLSection ¶
type DLLSection struct { VirtualSize int // DLL_Sections[name]['VirtualSize'], = struct.unpack('=l', fh.read(4)) VirtualAddress int // DLL_Sections[name]['VirtualAddress'], = struct.unpack('=l', fh.read(4)) SizeOfRawData int // DLL_Sections[name]['SizeOfRawData'], = struct.unpack('=l', fh.read(4)) PointerToRawData int // DLL_Sections[name]['PointerToRawData'], = struct.unpack('=l', fh.read(4)) PointerToRelocations int // DLL_Sections[name]['PointerToRelocations'], = struct.unpack('=l', fh.read(4)) PointerToLinenumbers int // DLL_Sections[name]['PointerToLinenumbers'], = struct.unpack('=l', fh.read(4)) NumberOfRelocations int // DLL_Sections[name]['NumberOfRelocations'], = struct.unpack('h', fh.read(2)) NumberOfLinenumbers int // DLL_Sections[name]['NumberOfLinenumbers'], = struct.unpack('h', fh.read(2)) Characteristics int // DLL_Sections[name]['Characteristics'], = struct.unpack('=l', fh.read(4)) }
Directories ¶
Path | Synopsis |
---|---|
Package binary_pack performs conversions between some Go values represented as byte slices.
|
Package binary_pack performs conversions between some Go values represented as byte slices. |
Click to show internal directories.
Click to hide internal directories.