public final class Decoders extends Object
| Constructor and Description |
|---|
Decoders() |
| Modifier and Type | Method and Description |
|---|---|
static DirectDecompress |
decompress(io.netty.buffer.ByteBuf compressed,
io.netty.buffer.ByteBuf decompressed)
Decodes the given data buffer.
|
static DirectDecompress |
decompress(ByteBuffer compressed,
ByteBuffer decompressed)
Decodes the given data buffer.
|
public static DirectDecompress decompress(ByteBuffer compressed, ByteBuffer decompressed) throws IOException
compressed - ByteBuffer source - will be read in full (position == limit after this call).decompressed - ByteBuffer destination - compressed data will be filled in beginning at position, up to remaining bytes; position is updatedDirectDecompress instance - upon return, only the status code is still validIOException - Thrown in case of error during decodingpublic static DirectDecompress decompress(io.netty.buffer.ByteBuf compressed, io.netty.buffer.ByteBuf decompressed) throws IOException
compressed - ByteBuf sourcedecompressed - ByteBuf destinationDirectDecompress instanceIOException - Thrown in case of error during encodingCopyright © 2024. All rights reserved.