Interface VelocityCompressor
- All Superinterfaces:
AutoCloseable,Closeable,Disposable,Native
- All Known Implementing Classes:
JavaVelocityCompressor,LibdeflateVelocityCompressor
Provides an interface to inflate and deflate
ByteBufs using zlib or a compatible
implementation.-
Method Summary
Methods inherited from interface com.velocitypowered.natives.Disposable
closeMethods inherited from interface com.velocitypowered.natives.Native
preferredBufferType
-
Method Details
-
inflate
void inflate(io.netty.buffer.ByteBuf source, io.netty.buffer.ByteBuf destination, int uncompressedSize) throws DataFormatException - Throws:
DataFormatException
-
deflate
void deflate(io.netty.buffer.ByteBuf source, io.netty.buffer.ByteBuf destination) throws DataFormatException - Throws:
DataFormatException
-