C# Класс 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/
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Compress() публичный Метод

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.
Результат byte[]

Decompress() публичный Метод

Decompresses data and returns it as an uncompressed array of bytes.
public Decompress ( byte Data ) : byte[]
Data byte The data to decompress.
Результат byte[]