C# Class RocksmithToolkitLib.PsarcLoader.PSARC

Inheritance: IDisposable
Datei anzeigen Open project: rscustom/rocksmith-custom-song-toolkit Class Usage Examples

Private Properties

Property Type Description
DeflateEntries void
ParseTOC void
RequiredPsarcSize long
WriteManifest void

Public Methods

Method Description
AddEntry ( Entry entry ) : void
AddEntry ( string name, Stream data ) : void
Dispose ( ) : void
InflateEntries ( ) : void

Inflates all entries in current psarc.

InflateEntry ( Entry entry, string destfilepath = "" ) : void

Inflates selected entry.

InflateEntry ( string name ) : void

Inflates the entry.

PSARC ( ) : System
PSARC ( bool Memory ) : System
Read ( Stream psarc, bool lazy = false ) : void
ReadManifest ( ) : void

Reads file names from the manifest.

Write ( Stream inputStream, bool encrypt = false, bool seek = true ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
DeflateEntries ( byte[]>.Dictionary &entryDeflatedData, List &zLengths ) : void

Packs Entries to zStream

ParseTOC ( ) : void
RequiredPsarcSize ( ) : long

Checks if psarc is not truncated.

WriteManifest ( ) : void

Method Details

AddEntry() public method

public AddEntry ( Entry entry ) : void
entry Entry
return void

AddEntry() public method

public AddEntry ( string name, Stream data ) : void
name string
data Stream
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

InflateEntries() public method

Inflates all entries in current psarc.
public InflateEntries ( ) : void
return void

InflateEntry() public method

Inflates selected entry.
public InflateEntry ( Entry entry, string destfilepath = "" ) : void
entry Entry Entry to unpack.
destfilepath string Destination file used instead of the temp file.
return void

InflateEntry() public method

Inflates the entry.
public InflateEntry ( string name ) : void
name string Name with extension.
return void

PSARC() public method

public PSARC ( ) : System
return System

PSARC() public method

public PSARC ( bool Memory ) : System
Memory bool
return System

Read() public method

public Read ( Stream psarc, bool lazy = false ) : void
psarc Stream
lazy bool
return void

ReadManifest() public method

Reads file names from the manifest.
public ReadManifest ( ) : void
return void

Write() public method

public Write ( Stream inputStream, bool encrypt = false, bool seek = true ) : void
inputStream Stream
encrypt bool
seek bool
return void