C# Class T8SuitePro.Trionic8File

Datei anzeigen Open project: mattiasclaesson/TuningSuites Class Usage Examples

Public Methods

Method Description
GetStartVectorAddress ( string filename ) : long
GetVectorAddresses ( string filename ) : long[]
GetVectorNames ( ) : string[]
TryToExtractPackedBinary ( string filename, int filename_size, CommonSuite.SymbolCollection &symbol_collection ) : bool
TryToLoadAdditionalBinSymbols ( string filename, CommonSuite.SymbolCollection coll2load ) : bool
TryToLoadAdditionalXMLSymbols ( string filename, CommonSuite.SymbolCollection coll2load ) : bool
ValidateTrionic8File ( string filename ) : bool
readdatafromfile ( string filename, int address, int length ) : byte[]

Private Methods

Method Description
AddNamesToSymbols ( CommonSuite.SymbolCollection symbol_collection, string allSymbolNames ) : void

CastProgressEvent ( string info, int percentage ) : void
DumpBytesToConsole ( byte bytes ) : void
GetAddrTableOffset ( string filename ) : int
GetAddrTableOffsetBySymbolTable ( string filename ) : int
GetAddressFromOffset ( int offset, string filename ) : int
GetEndOfSymbolTable ( string filename ) : int
GetFileDescriptionFromFile ( string file ) : string
GetFirstNqStringFromOffset ( int offset, string filename ) : int
GetLastNqStringFromOffset ( int offset, string filename ) : int
GetLengthFromOffset ( int offset, string filename ) : int
GetNqNqNqStringFromOffset ( int offset, string filename ) : int
GetStartOfAddressTableOffset ( string filename ) : int
GetSymbolListOffSet ( string m_currentfile, int filelength ) : int
ImportSymbols ( System dt, CommonSuite.SymbolCollection coll2load ) : void
IsBinaryPackedVersion ( string m_currentfile, int filelength ) : bool

Check is identifier 0x9B is present in the footer. If this is the case, the file is packed!

ReadMarkerAddress ( string filename, int value, int filelength, int &length, string &val ) : int
ReadMarkerAddressContent ( string filename, int value, int filelength, int &length, int &val ) : int
UnpackFileUsingDecode ( string filename, int filelength, int &symboltableoffset ) : bool
extractCompressedSymbolTable ( string filename, int &symboltableoffset, byte &bytes ) : bool

Method Details

GetStartVectorAddress() public static method

public static GetStartVectorAddress ( string filename ) : long
filename string
return long

GetVectorAddresses() public static method

public static GetVectorAddresses ( string filename ) : long[]
filename string
return long[]

GetVectorNames() public static method

public static GetVectorNames ( ) : string[]
return string[]

TryToExtractPackedBinary() public static method

public static TryToExtractPackedBinary ( string filename, int filename_size, CommonSuite.SymbolCollection &symbol_collection ) : bool
filename string
filename_size int
symbol_collection CommonSuite.SymbolCollection
return bool

TryToLoadAdditionalBinSymbols() public static method

public static TryToLoadAdditionalBinSymbols ( string filename, CommonSuite.SymbolCollection coll2load ) : bool
filename string
coll2load CommonSuite.SymbolCollection
return bool

TryToLoadAdditionalXMLSymbols() public static method

public static TryToLoadAdditionalXMLSymbols ( string filename, CommonSuite.SymbolCollection coll2load ) : bool
filename string
coll2load CommonSuite.SymbolCollection
return bool

ValidateTrionic8File() public static method

public static ValidateTrionic8File ( string filename ) : bool
filename string
return bool

readdatafromfile() public static method

public static readdatafromfile ( string filename, int address, int length ) : byte[]
filename string
address int
length int
return byte[]