public class SnappyCompression extends Object implements CompressionSerializer
| Modifier and Type | Field and Description |
|---|---|
static SnappyCompression |
INSTANCE |
| Constructor and Description |
|---|
SnappyCompression() |
| 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 SnappyCompression 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–2022 NukkitX. All rights reserved.