C# Class SimTelemetry.Game.rFactor2.MAS2Reader

This class reads .MAS files for rFactor 2. Made in-house of course :-)
Exibir arquivo Open project: nlhans/SimTelemetry

Public Properties

Property Type Description
Files List

Public Methods

Method Description
ContainsFile ( string file ) : bool
ExtractBytes ( MAS2File f ) : byte[]
ExtractBytes ( int index ) : byte[]
ExtractFile ( MAS2File f, string target ) : void
ExtractFile ( int index, string target ) : void
ExtractString ( MAS2File f ) : string
ExtractString ( int index ) : string
GetFile ( string file ) : List
MAS2Reader ( string file, string exts ) : System

Private Methods

Method Description
DecodeFileHeader ( byte bf ) : byte[]
DecodeFileHeader_ShiftBytesRight ( ulong d, byte s ) : ulong
DecodeHeaderString ( byte mas_header ) : string
ReadHeader ( ) : void

Method Details

ContainsFile() public method

public ContainsFile ( string file ) : bool
file string
return bool

ExtractBytes() public method

public ExtractBytes ( MAS2File f ) : byte[]
f MAS2File
return byte[]

ExtractBytes() public method

public ExtractBytes ( int index ) : byte[]
index int
return byte[]

ExtractFile() public method

public ExtractFile ( MAS2File f, string target ) : void
f MAS2File
target string
return void

ExtractFile() public method

public ExtractFile ( int index, string target ) : void
index int
target string
return void

ExtractString() public method

public ExtractString ( MAS2File f ) : string
f MAS2File
return string

ExtractString() public method

public ExtractString ( int index ) : string
index int
return string

GetFile() public method

public GetFile ( string file ) : List
file string
return List

MAS2Reader() public method

public MAS2Reader ( string file, string exts ) : System
file string
exts string
return System

Property Details

Files public_oe property

public List Files
return List