public final class FrameDecoderLZ4 extends FrameDecoder
isSelfContained
flag (1 bit)
4. Header padding (5 bits)
5. CRC24 of Header contents (24 bits)
6. Compressed Payload (up to 2 ^ 17 - 1 bits)
7. CRC32 of Compressed Payload (32 bits)
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Compressed Length | Uncompressed Length
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|C| | CRC24 of Header |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ +
| Compressed Payload |
+ +
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| CRC32 of Compressed Payload |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+FrameDecoder.CorruptFrame, FrameDecoder.Frame, FrameDecoder.FrameProcessor, FrameDecoder.IntactFrame
allocator
Modifier and Type | Method and Description |
---|---|
protected void |
decode(java.util.Collection<FrameDecoder.Frame> into,
ShareableBytes newBytes,
int headerLength)
Decode a number of frames using the above abstract method implementations.
|
static FrameDecoderLZ4 |
fast(BufferPoolAllocator allocator) |
activate, channelInactive, channelRead, channelReadComplete, discard, handlerAdded
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerRemoved, isSharable
public static FrameDecoderLZ4 fast(BufferPoolAllocator allocator)
@Inline protected void decode(java.util.Collection<FrameDecoder.Frame> into, ShareableBytes newBytes, int headerLength)
FrameDecoder.decode(Collection, ShareableBytes)
so that this implementation will be inlined, and all of the abstract method implementations will also be inlined.Copyright © 2009- The Apache Software Foundation