Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeUTF16(b []byte) (string, error)
- func GetAllInfocards(filesystem *filefind.Filesystem, dll_names []string) *infocard.Config
- func GetResource(mem *bin.Bdatas, data []byte, out *infocard.Config, absloc int, ...) error
- func JoinSize(size int, s ...[]byte) []byte
- func ParseDLLs(dll_fnames []*file.File) *infocard.Config
- func ReadText(fh *bytes.Reader, count int) string
- type Config
- type DLLSection
- type DataType
Constants ¶
View Source
const (
FILENAME_FL_INI = "freelancer.ini"
)
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 ¶
Types ¶
type Config ¶
type Config struct { *iniload.IniLoader Dlls []*semantic.String Markets []*semantic.Path Goods []*semantic.Path Equips []*semantic.Path Universe []*semantic.Path Ships []*semantic.Path }
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.