C# Класс ME3Explorer.Packages.CompressionHelper

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Compress ( Stream uncompressedPcc ) : Stream

compress an entire ME3 pcc into a byte array.

Compress ( byte uncompressedPcc ) : byte[]

compress an entire ME3 pcc into a byte array.

CompressAndSave ( Stream uncompressedPcc, string pccFileName ) : void

compress an entire ME3 pcc into a file.

CompressAndSave ( byte uncompressedPcc, string pccFileName ) : void

compress an entire ME3 pcc into a file.

Decompress ( string pccFileName ) : byte[]

decompress an entire ME3, 2, or 1 package file.

DecompressME1orME2 ( Stream raw ) : MemoryStream

decompress an entire ME1 or 2 pcc file.

DecompressME3 ( Stream input ) : MemoryStream

decompress an entire ME3 pcc file into a new stream

DecompressME3 ( byte rawData ) : byte[]

decompress an entire ME3 pcc file.

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

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

compress an entire ME3 pcc into a byte array.
public static Compress ( Stream uncompressedPcc ) : Stream
uncompressedPcc Stream uncompressed pcc stream.
Результат Stream

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

compress an entire ME3 pcc into a byte array.
public static Compress ( byte uncompressedPcc ) : byte[]
uncompressedPcc byte uncompressed pcc file stored in a byte array.
Результат byte[]

CompressAndSave() публичный статический Метод

compress an entire ME3 pcc into a file.
public static CompressAndSave ( Stream uncompressedPcc, string pccFileName ) : void
uncompressedPcc Stream uncompressed pcc stream.
pccFileName string pcc file name to save.
Результат void

CompressAndSave() публичный статический Метод

compress an entire ME3 pcc into a file.
public static CompressAndSave ( byte uncompressedPcc, string pccFileName ) : void
uncompressedPcc byte uncompressed pcc file stored in a byte array.
pccFileName string pcc file name to save.
Результат void

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

decompress an entire ME3, 2, or 1 package file.
public static Decompress ( string pccFileName ) : byte[]
pccFileName string pcc file's name to open.
Результат byte[]

DecompressME1orME2() публичный статический Метод

decompress an entire ME1 or 2 pcc file.
public static DecompressME1orME2 ( Stream raw ) : MemoryStream
raw Stream pcc file passed in stream format
Результат System.IO.MemoryStream

DecompressME3() публичный статический Метод

decompress an entire ME3 pcc file into a new stream
public static DecompressME3 ( Stream input ) : MemoryStream
input Stream pcc file passed in stream format
Результат System.IO.MemoryStream

DecompressME3() публичный статический Метод

decompress an entire ME3 pcc file.
public static DecompressME3 ( byte rawData ) : byte[]
rawData byte pcc file passed in byte array format.
Результат byte[]