C# Class FSO.Files.FAR3.Decompresser

Represents a decompresser that can decompress files in a FAR3 archive. If you have some kind of need to understand this code, go to: http://wiki.niotso.org/RefPack The code in this class was ported from DBPF4J: http://sc4dbpf4j.cvs.sourceforge.net/viewvc/sc4dbpf4j/DBPF4J/
ファイルを表示 Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method Description
Compress ( byte Data ) : byte[]

Compresses data and returns it as an array of bytes. Assumes that the array of bytes passed contains uncompressed data.

Decompress ( byte Data ) : byte[]

Decompresses data and returns it as an uncompressed array of bytes.

Private Methods

Method Description
ArrayCopy2 ( byte Src, int SrcPos, byte &Dest, int DestPos, long Length ) : void

Copies data from source to destination array.
The copy is byte by byte from srcPos to destPos and given length.

OffsetCopy ( byte &array, int srcPos, int destPos, long length ) : void

Copies data from array at destPos-srcPos to array at destPos.

Method Details

Compress() public method

Compresses data and returns it as an array of bytes. Assumes that the array of bytes passed contains uncompressed data.
public Compress ( byte Data ) : byte[]
Data byte The data to be compressed.
return byte[]

Decompress() public method

Decompresses data and returns it as an uncompressed array of bytes.
public Decompress ( byte Data ) : byte[]
Data byte The data to decompress.
return byte[]