Method | Description | |
---|---|---|
CompressBytes ( byte data, int offset, int count, int threads = 1, int level = 6 ) : byte[] |
Compress data in-memory
|
|
CompressFile ( string inFile, string outFile, FileMode mode = FileMode.Create, int threads = 1, int level = 6 ) : void | ||
DecompressBytes ( byte data, int offset, int count ) : byte[] | ||
DecompressFile ( string inFile, string outFile ) : void |
Method | Description | |
---|---|---|
CodeBuffer ( |
liblzma has provided lzma_stream_buffer_encode and lzma_stream_buffer_decode, but here I re-invent the wheel again...
|
|
CreateEncoder ( |
public static CompressBytes ( byte data, int offset, int count, int threads = 1, int level = 6 ) : byte[] | ||
data | byte | |
offset | int | |
count | int | |
threads | int | |
level | int | 0-9, default is 6, bigger number needs more time and produces smaller compressed data |
return | byte[] |
public static CompressFile ( string inFile, string outFile, FileMode mode = FileMode.Create, int threads = 1, int level = 6 ) : void | ||
inFile | string | |
outFile | string | |
mode | FileMode | |
threads | int | |
level | int | |
return | void |
public static DecompressBytes ( byte data, int offset, int count ) : byte[] | ||
data | byte | |
offset | int | |
count | int | |
return | byte[] |
public static DecompressFile ( string inFile, string outFile ) : void | ||
inFile | string | |
outFile | string | |
return | void |