ChunkEncoder implementation that handles actual encoding of individual chunks,
using Sun's sun.misc.Unsafe functionality, which gives
nice extra boost for speed.
| Modifier and Type | Field and Description |
|---|---|
| protected static final long | |
| protected static final long | |
| protected static final Unsafe |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int |
| BYTE_ARRAY_OFFSET | back to summary |
|---|---|
| protected static final long BYTE_ARRAY_OFFSET | |
| BYTE_ARRAY_OFFSET_PLUS2 | back to summary |
|---|---|
| protected static final long BYTE_ARRAY_OFFSET_PLUS2 | |
| unsafe | back to summary |
|---|---|
| protected static final Unsafe unsafe | |
| UnsafeChunkEncoder | back to summary |
|---|---|
| public UnsafeChunkEncoder(int totalLength) | |
| UnsafeChunkEncoder | back to summary |
|---|---|
| public UnsafeChunkEncoder(int totalLength, boolean bogus) | |
| UnsafeChunkEncoder | back to summary |
|---|---|
| public UnsafeChunkEncoder(int totalLength, BufferRecycler bufferRecycler) | |
| UnsafeChunkEncoder | back to summary |
|---|---|
| public UnsafeChunkEncoder(int totalLength, BufferRecycler bufferRecycler, boolean bogus) | |
| _copyFullLiterals | back to summary |
|---|---|
| protected static final int _copyFullLiterals(byte[] in, int inPos, byte[] out, int outPos) | |
| _copyLongLiterals | back to summary |
|---|---|
| protected static final int _copyLongLiterals(byte[] in, int inPos, byte[] out, int outPos, int literals) | |
| _copyPartialLiterals | back to summary |
|---|---|
| protected static final int _copyPartialLiterals(byte[] in, int inPos, byte[] out, int outPos, int literals) | |
| _findTailMatchLength | back to summary |
|---|---|
| protected static final int _findTailMatchLength(final byte[] in, int ptr1, int ptr2, final int maxPtr1) | |
| _handleTail | back to summary |
|---|---|
| protected static final int _handleTail(byte[] in, int inPos, int inEnd, byte[] out, int outPos, int literals) | |