C# Class Files.FAR3.FAR3Archive

Represents a FAR version 3 archive.
Inheritance: IDisposable
显示文件 Open project: Afr0Games/Project-Dollhouse Class Usage Examples

Public Methods

Method Description
ContainsEntry ( ulong ID ) : bool

Does this archive contain the specified entry?

Dispose ( ) : void
FAR3Archive ( string Path ) : System
GrabEntry ( ulong ID ) : Stream

Returns an entry in this archive as a Stream instance. Throws a FAR3Exception if entry was not found.

ReadArchive ( bool ThrowException ) : bool

Reads all the entries in the archive into memory.

Protected Methods

Method Description
Dispose ( bool CleanUpNativeAndManagedResources ) : void

Private Methods

Method Description
Decompress ( FAR3Entry Entry ) : Stream

Method Details

ContainsEntry() public method

Does this archive contain the specified entry?
public ContainsEntry ( ulong ID ) : bool
ID ulong ID of the entry to search for.
return bool

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

FAR3Archive() public method

public FAR3Archive ( string Path ) : System
Path string
return System

GrabEntry() public method

Returns an entry in this archive as a Stream instance. Throws a FAR3Exception if entry was not found.
public GrabEntry ( ulong ID ) : Stream
ID ulong ID of the entry to grab from archive.
return Stream

ReadArchive() public method

Reads all the entries in the archive into memory.
public ReadArchive ( bool ThrowException ) : bool
ThrowException bool Wether or not to throw an exception if the archive was not a FAR3. If false, function will return.
return bool