Class CompressionUtil

java.lang.Object
ca.spottedleaf.ioutil.util.CompressionUtil

public final class CompressionUtil extends Object
  • Method Details

    • deflate

      public static int deflate(Buffer src, int maxRead, Buffer dst, int maxWrite)
    • deflate

      public static int deflate(Buffer src, int toRead, Buffer dst, int maxWrite, Consumer<Deflater> deflaterConsumer)
    • deflate

      public static int deflate(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite)
    • deflate

      public static int deflate(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite, Consumer<Deflater> deflaterConsumer)
    • inflate

      public static int inflate(Buffer src, int maxRead, Buffer dst, int maxWrite) throws DataFormatException
      Throws:
      DataFormatException
    • inflate

      public static int inflate(Buffer src, int toRead, Buffer dst, int maxWrite, Consumer<Inflater> inflaterConsumer) throws DataFormatException
      Throws:
      DataFormatException
    • inflate

      public static int inflate(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite) throws DataFormatException
      Throws:
      DataFormatException
    • inflate

      public static int inflate(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite, Consumer<Inflater> inflaterConsumer) throws DataFormatException
      Throws:
      DataFormatException
    • zstdCompress

      public static int zstdCompress(Buffer src, int maxRead, Buffer dst, int maxWrite) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • zstdCompress

      public static int zstdCompress(Buffer src, int toRead, Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdCompressCtx> ctxConsumer) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • zstdCompress

      public static int zstdCompress(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • zstdCompress

      public static int zstdCompress(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdCompressCtx> ctxConsumer) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • zstdDecompress

      public static int zstdDecompress(Buffer src, int maxRead, Buffer dst, int maxWrite) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • zstdDecompress

      public static int zstdDecompress(Buffer src, int toRead, Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdDecompressCtx> ctxConsumer) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • zstdDecompress

      public static int zstdDecompress(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • zstdDecompress

      public static int zstdDecompress(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdDecompressCtx> ctxConsumer) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException