public final class UnsafeChunkEncoderBE 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 |
---|
UnsafeChunkEncoderBE(int totalLength) |
UnsafeChunkEncoderBE(int totalLength,
boolean bogus) |
UnsafeChunkEncoderBE(int totalLength,
BufferRecycler bufferRecycler) |
UnsafeChunkEncoderBE(int totalLength,
BufferRecycler bufferRecycler,
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, appendEncodedIfCompresses, close, encodeAndWriteChunk, encodeAndWriteChunkIfCompresses, encodeChunk, encodeChunkIfCompresses, getBufferRecycler, hash
public UnsafeChunkEncoderBE(int totalLength)
public UnsafeChunkEncoderBE(int totalLength, boolean bogus)
public UnsafeChunkEncoderBE(int totalLength, BufferRecycler bufferRecycler)
public UnsafeChunkEncoderBE(int totalLength, BufferRecycler bufferRecycler, 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 © 2019 FasterXML. All rights reserved.