Method | Description | |
---|---|---|
Compress ( byte input, CompressMode &compressMode ) : byte[] |
compress the input data
|
|
Compressor ( SlidingWindowSize mode ) : System |
constructor with specified sliding window size
|
|
Dispose ( ) : void |
release resources
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
release resources
|
Method | Description | |
---|---|---|
CompressCore ( byte input, int maxBit = 16 ) : void |
Compress the input buffer and write it into output stream.
|
|
EncodeData ( uint data, int dataBitsCount ) : void |
encode data of variable length
|
|
EncodeLength ( int length, int maxBit = 16 ) : void |
encoding length according to RFC2118
|
|
EncodeLiteral ( byte literal ) : void |
Encode literal according to RFC2118
|
|
EncodeOffset ( int offset ) : void |
Encoding offset according to RFC2118
|
|
EncodeOffsetLengthPair ( OffsetLengthPair pair, int maxBit = 16 ) : void |
Encode offset and length according to RFC2118
|
|
FindMatchInSlidingWindow ( byte input, int startIndex ) : OffsetLengthPair | ||
GetHighestBitOnePos ( int data, int dataBitsCount ) : int |
Get the highest position of bit one
|
public Compress ( byte input, CompressMode &compressMode ) : byte[] | ||
input | byte | the input data |
compressMode | CompressMode | the compress mode of this compress |
return | byte[] |
public Compressor ( SlidingWindowSize mode ) : System | ||
mode | SlidingWindowSize | the mode of compressor, specify the size of sliding window |
return | System |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | indicate whether GC or user call this function |
return | void |