Package org.cloudburstmc.server.utils
Class Zlib
java.lang.Object
org.cloudburstmc.server.utils.Zlib
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]deflate(byte[] input, int level)voiddeflate(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output, int level)byte[]inflate(byte[] input)voidinflate(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output)voidinflate(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output, int maxSize)
-
Field Details
-
DEFAULT
-
GZIP
-
-
Constructor Details
-
Zlib
public Zlib(int level, boolean nowrap)
-
-
Method Details
-
inflate
public void inflate(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output, int maxSize) throws DataFormatException- Throws:
DataFormatException
-
inflate
public void inflate(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output) throws DataFormatException- Throws:
DataFormatException
-
inflate
- Throws:
DataFormatException
-
deflate
public void deflate(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output, int level) -
deflate
public byte[] deflate(byte[] input, int level)
-