C# Class T8SuitePro.Trionic8File

Afficher le fichier Open project: mattiasclaesson/TuningSuites Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static GetStartVectorAddress ( string filename ) : long
filename string
Résultat long

GetVectorAddresses() public static méthode

public static GetVectorAddresses ( string filename ) : long[]
filename string
Résultat long[]

GetVectorNames() public static méthode

public static GetVectorNames ( ) : string[]
Résultat string[]

TryToExtractPackedBinary() public static méthode

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

TryToLoadAdditionalBinSymbols() public static méthode

public static TryToLoadAdditionalBinSymbols ( string filename, CommonSuite.SymbolCollection coll2load ) : bool
filename string
coll2load CommonSuite.SymbolCollection
Résultat bool

TryToLoadAdditionalXMLSymbols() public static méthode

public static TryToLoadAdditionalXMLSymbols ( string filename, CommonSuite.SymbolCollection coll2load ) : bool
filename string
coll2load CommonSuite.SymbolCollection
Résultat bool

ValidateTrionic8File() public static méthode

public static ValidateTrionic8File ( string filename ) : bool
filename string
Résultat bool

readdatafromfile() public static méthode

public static readdatafromfile ( string filename, int address, int length ) : byte[]
filename string
address int
length int
Résultat byte[]