public class UnsafeChunkEncoderLE extends UnsafeChunkEncoder
BYTE_ARRAY_OFFSET, BYTE_ARRAY_OFFSET_PLUS2, unsafe
_encodeBuffer, _hashModulo, _hashTable, _headerBuffer, _recycler, MAX_HASH_SIZE, MAX_OFF, MAX_REF, MIN_BLOCK_TO_COMPRESS, MIN_HASH_SIZE, TAIL_LENGTH
Constructor and Description |
---|
UnsafeChunkEncoderLE(int totalLength) |
UnsafeChunkEncoderLE(int totalLength,
boolean bogus) |
Modifier and Type | Method and Description |
---|---|
protected int |
tryCompress(byte[] in,
int inPos,
int inEnd,
byte[] out,
int outPos)
Main workhorse method that will try to compress given chunk, and return
end position (offset to byte after last included byte)
|
_copyFullLiterals, _copyLongLiterals, _copyPartialLiterals, _findTailMatchLength, _handleTail
appendEncodedChunk, close, encodeAndWriteChunk, encodeChunk, hash
public UnsafeChunkEncoderLE(int totalLength)
public UnsafeChunkEncoderLE(int totalLength, boolean bogus)
protected int tryCompress(byte[] in, int inPos, int inEnd, byte[] out, int outPos)
ChunkEncoder
tryCompress
in class ChunkEncoder
result - originalOutPost
is the actual length of compressed chunk (without header)Copyright © 2014. All rights reserved.