Interface VelocityCompressor

All Superinterfaces:
AutoCloseable, Closeable, Disposable, Native
All Known Implementing Classes:
JavaVelocityCompressor, LibdeflateVelocityCompressor

public interface VelocityCompressor extends Disposable, Native
Provides an interface to inflate and deflate ByteBufs using zlib or a compatible implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deflate(io.netty.buffer.ByteBuf source, io.netty.buffer.ByteBuf destination)
     
    void
    inflate(io.netty.buffer.ByteBuf source, io.netty.buffer.ByteBuf destination, int uncompressedSize)
     

    Methods inherited from interface com.velocitypowered.natives.Disposable

    close

    Methods inherited from interface com.velocitypowered.natives.Native

    preferredBufferType