public class ZlibCompression extends Object implements CompressionSerializer
| Modifier and Type | Field and Description |
|---|---|
static ZlibCompression |
INSTANCE |
| Constructor and Description |
|---|
ZlibCompression() |
| Modifier and Type | Method and Description |
|---|---|
void |
compress(ByteBuf input,
ByteBuf output,
int level) |
void |
decompress(ByteBuf input,
ByteBuf output,
int maxSize) |
public static final ZlibCompression INSTANCE
public void compress(ByteBuf input, ByteBuf output, int level) throws DataFormatException
compress in interface CompressionSerializerDataFormatExceptionpublic void decompress(ByteBuf input, ByteBuf output, int maxSize) throws DataFormatException
decompress in interface CompressionSerializerDataFormatExceptionCopyright © 2018–2023 NukkitX. All rights reserved.