C# Class SwiftPbo.PboArchive

Afficher le fichier Open project: headswe/SwiftPbo Class Usage Examples

Méthodes publiques

Méthode Description
Clone ( string path, ProductEntry productEntry, string>.Dictionary files, byte checksum = null ) : void
Create ( string directoryPath, string outpath ) : System.Boolean
Create ( string directoryPath, string outpath, ProductEntry productEntry ) : System.Boolean
Dispose ( ) : void
Extract ( FileEntry fileEntry, string outpath ) : System.Boolean
Extract ( FileEntry fileEntry ) : Stream

Returns a filestream to the ENTIRE pbo set at the file entry pos.

ExtractAll ( string outpath ) : System.Boolean
PboArchive ( string path, bool close = true ) : System
SterilizePath ( String path ) : String

Private Methods

Méthode Description
GetFileStream ( FileEntry fileEntry ) : Stream
GetFileStreamPos ( FileEntry fileEntry ) : ulong
IsLiteral ( char ch ) : bool
ReadChecksum ( FileStream stream ) : void
ReadEntry ( FileStream stream ) : bool
ReadHeader ( FileStream stream ) : System.Boolean
WriteFileEntry ( FileStream stream, FileEntry entry ) : void
WriteProductEntry ( ProductEntry productEntry, FileStream stream ) : void

Method Details

Clone() public static méthode

public static Clone ( string path, ProductEntry productEntry, string>.Dictionary files, byte checksum = null ) : void
path string
productEntry ProductEntry
files string>.Dictionary
checksum byte
Résultat void

Create() public static méthode

public static Create ( string directoryPath, string outpath ) : System.Boolean
directoryPath string
outpath string
Résultat System.Boolean

Create() public static méthode

public static Create ( string directoryPath, string outpath, ProductEntry productEntry ) : System.Boolean
directoryPath string
outpath string
productEntry ProductEntry
Résultat System.Boolean

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Extract() public méthode

public Extract ( FileEntry fileEntry, string outpath ) : System.Boolean
fileEntry FileEntry
outpath string
Résultat System.Boolean

Extract() public méthode

Returns a filestream to the ENTIRE pbo set at the file entry pos.
public Extract ( FileEntry fileEntry ) : Stream
fileEntry FileEntry
Résultat Stream

ExtractAll() public méthode

public ExtractAll ( string outpath ) : System.Boolean
outpath string
Résultat System.Boolean

PboArchive() public méthode

public PboArchive ( string path, bool close = true ) : System
path string
close bool
Résultat System

SterilizePath() public static méthode

public static SterilizePath ( String path ) : String
path String
Résultat String