C# Class FSO.Files.FAR3.FAR3Archive

Represents a single FAR3 archive.
Inheritance: IDisposable
显示文件 Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
isReadingSomething bool

Public Methods

Method Description
Dispose ( ) : void

Disposes this FAR3Archive instance.

FAR3Archive ( string Path ) : System

Creates a new FAR3Archive instance from a path.

GetAllEntries ( ) : byte[]>>.List

Returns the entries of this FAR3Archive as byte arrays together with their corresponding FileIDs.

GetAllFAR3Entries ( ) : List

Returns the entries of this FAR3Archive as FAR3Entry instances in a List.

GetEntry ( Far3Entry Entry ) : byte[]

Gets an entry's data from a Far3Entry instance.

GetItemByID ( uint FileID ) : byte[]

Gets an entry from a FileID.

GetItemByID ( ulong ID ) : byte[]

Gets an entry from its ID (TypeID + FileID).

this ( string Filename ) : byte[]

Gets an entry's data from a filename.

Method Details

Dispose() public method

Disposes this FAR3Archive instance.
public Dispose ( ) : void
return void

FAR3Archive() public method

Creates a new FAR3Archive instance from a path.
public FAR3Archive ( string Path ) : System
Path string The path to the archive.
return System

GetAllEntries() public method

Returns the entries of this FAR3Archive as byte arrays together with their corresponding FileIDs.
public GetAllEntries ( ) : byte[]>>.List
return byte[]>>.List

GetAllFAR3Entries() public method

Returns the entries of this FAR3Archive as FAR3Entry instances in a List.
public GetAllFAR3Entries ( ) : List
return List

GetEntry() public method

Gets an entry's data from a Far3Entry instance.
public GetEntry ( Far3Entry Entry ) : byte[]
Entry Far3Entry The Far3Entry instance.
return byte[]

GetItemByID() public method

Gets an entry from a FileID.
public GetItemByID ( uint FileID ) : byte[]
FileID uint The entry's FileID.
return byte[]

GetItemByID() public method

Gets an entry from its ID (TypeID + FileID).
public GetItemByID ( ulong ID ) : byte[]
ID ulong The ID of the entry.
return byte[]

this() public method

Gets an entry's data from a filename.
public this ( string Filename ) : byte[]
Filename string The filename of the entry.
return byte[]

Property Details

isReadingSomething public_oe static_oe property

public static bool isReadingSomething
return bool