GeezerVison is showing netty.io — ZstdDecoder (Netty API Reference (4.1.141.Final))
Class ZstdDecoder
-
-
Field Summary
Fields
Modifier and Type
Field
Description
static final int
Default upper bound on the Window_Log accepted by the decoder.
static final int
Default maximum size of a single output buffer, in bytes (4 MiB).
-
Constructor Summary
Constructors
Constructor
Description
ZstdDecoder(int maximumAllocationSize,
int maxWindowLog)
Creates a new decoder with an explicit upper bound on the accepted Window_Log.
-
Method Summary
Modifier and Type
Method
Description
void
protected void
Decode the from one ByteBuf to an other.
void
Do nothing by default, sub-classes may override this method.
protected void
Gets called after the ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
actualReadableBytes, callDecode, channelInactive, channelRead, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Modifier and Type
Method
Description
protected int
Returns the actual number of readable bytes in the internal cumulative
buffer of this decoder.
protected void
Called once data should be decoded from the given ByteBuf.
void
void
protected void
protected final void
final void
Do nothing by default, sub-classes may override this method.
Returns the internal cumulative buffer of this decoder.
boolean
void
void
void
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DEFAULT_MAXIMUM_ALLOCATION_SIZE
public static final int DEFAULT_MAXIMUM_ALLOCATION_SIZE
Default maximum size of a single output buffer, in bytes (4 MiB).
- See Also:
-
-
DEFAULT_MAX_WINDOW_LOG
public static final int DEFAULT_MAX_WINDOW_LOG
Default upper bound on the Window_Log accepted by the decoder.
27 corresponds to a 128 MiB decompression window.
- See Also:
-
-
Constructor Details
-
ZstdDecoder
public ZstdDecoder()
Creates a new decoder with the DEFAULT_MAXIMUM_ALLOCATION_SIZE,
and the DEFAULT_MAX_WINDOW_LOG window log size.
The window log size bounds the memory usage of the sliding window for ZSTD frame decompression.
Frames declaring a larger window will be rejected to bound the memory the decoder may allocate per stream.
-
ZstdDecoder
public ZstdDecoder(int maximumAllocationSize)
Creates a new decoder with the given maximum allocation size,
and the DEFAULT_MAX_WINDOW_LOG window log size.
The window log size bounds the memory usage of the sliding window for ZSTD frame decompression.
Frames declaring a larger window will be rejected to bound the memory the decoder may allocate per stream.
- Parameters:
maximumAllocationSize - maximum size of a single output buffer.
-
ZstdDecoder
public ZstdDecoder(int maximumAllocationSize,
int maxWindowLog)
Creates a new decoder with an explicit upper bound on the accepted Window_Log.
- Parameters:
maximumAllocationSize - maximum size of a single output buffer.
maxWindowLog - upper bound on the Window_Log field of incoming
frames; must be in [10, 31]. Frames declaring a
larger window will be rejected to bound the memory the
decoder may allocate per stream.
-
|