Class ZstdCompressionUtil

java.lang.Object
ca.spottedleaf.ioutil.util.zstd.ZstdCompressionUtil

public final class ZstdCompressionUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    compress(ca.spottedleaf.ioutil.buffer.Buffer src, int maxRead, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite)
     
    static int
    compress(ca.spottedleaf.ioutil.buffer.Buffer src, int toRead, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdCompressCtx> ctxConsumer)
     
    static int
    compress(MemorySegment src, int srcOff, int srcLen, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite)
     
    static int
    compress(MemorySegment src, int srcOff, int srcLen, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdCompressCtx> ctxConsumer)
     
    static int
    decompress(ca.spottedleaf.ioutil.buffer.Buffer src, int maxRead, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite)
     
    static int
    decompress(ca.spottedleaf.ioutil.buffer.Buffer src, int toRead, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdDecompressCtx> ctxConsumer)
     
    static int
    decompress(MemorySegment src, int srcOff, int srcLen, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite)
     
    static int
    decompress(MemorySegment src, int srcOff, int srcLen, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdDecompressCtx> ctxConsumer)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • compress

      public static int compress(ca.spottedleaf.ioutil.buffer.Buffer src, int maxRead, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • compress

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

      public static int compress(MemorySegment src, int srcOff, int srcLen, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • compress

      public static int compress(MemorySegment src, int srcOff, int srcLen, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdCompressCtx> ctxConsumer) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • decompress

      public static int decompress(ca.spottedleaf.ioutil.buffer.Buffer src, int maxRead, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • decompress

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

      public static int decompress(MemorySegment src, int srcOff, int srcLen, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite) throws com.github.luben.zstd.ZstdException
      Throws:
      com.github.luben.zstd.ZstdException
    • decompress

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