Class LibdeflateVelocityCompressor
java.lang.Object
com.velocitypowered.natives.compression.LibdeflateVelocityCompressor
- All Implemented Interfaces:
VelocityCompressor,Disposable,Native,Closeable,AutoCloseable
Implements deflate compression using the
libdeflate native C library.-
Field Details
-
FACTORY
-
-
Method Details
-
inflate
public void inflate(io.netty.buffer.ByteBuf source, io.netty.buffer.ByteBuf destination, int uncompressedSize) throws DataFormatException - Specified by:
inflatein interfaceVelocityCompressor- Throws:
DataFormatException
-
deflate
public void deflate(io.netty.buffer.ByteBuf source, io.netty.buffer.ByteBuf destination) throws DataFormatException - Specified by:
deflatein interfaceVelocityCompressor- Throws:
DataFormatException
-
close
public void close()Description copied from interface:DisposableDisposes this object. After this call returns, any use of this object becomes invalid. Multiple calls to this function should be safe: there should be no side-effects once an object is disposed.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceDisposable
-
preferredBufferType
- Specified by:
preferredBufferTypein interfaceNative
-