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) |
UnsafeChunkEncoderLE(int totalLength,
BufferRecycler bufferRecycler) |
UnsafeChunkEncoderLE(int totalLength,
BufferRecycler bufferRecycler,
boolean bogus) |
| Modifier and Type | Method and Description |
|---|---|
private static int |
_findLongMatchLength(byte[] in,
int ptr1,
int ptr2,
int maxPtr1) |
private static int |
_findMatchLength(byte[] in,
int ptr1,
int ptr2,
int maxPtr1) |
private static int |
_getInt(byte[] in,
int inPos) |
private static int |
_leadingBytes(int i1,
int i2) |
private static int |
_leadingBytes(long l1,
long l2) |
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, _handleTailappendEncodedChunk, appendEncodedIfCompresses, close, encodeAndWriteChunk, encodeAndWriteChunkIfCompresses, encodeChunk, encodeChunkIfCompresses, getBufferRecycler, hashpublic UnsafeChunkEncoderLE(int totalLength)
public UnsafeChunkEncoderLE(int totalLength,
boolean bogus)
public UnsafeChunkEncoderLE(int totalLength,
BufferRecycler bufferRecycler)
public UnsafeChunkEncoderLE(int totalLength,
BufferRecycler bufferRecycler,
boolean bogus)
protected int tryCompress(byte[] in,
int inPos,
int inEnd,
byte[] out,
int outPos)
ChunkEncodertryCompress in class ChunkEncoderresult - originalOutPost
is the actual length of compressed chunk (without header)private static final int _getInt(byte[] in,
int inPos)
private static final int _findMatchLength(byte[] in,
int ptr1,
int ptr2,
int maxPtr1)
private static final int _findLongMatchLength(byte[] in,
int ptr1,
int ptr2,
int maxPtr1)
private static final int _leadingBytes(int i1,
int i2)
private static final int _leadingBytes(long l1,
long l2)