Class ZstdCompressionUtil
java.lang.Object
ca.spottedleaf.ioutil.util.zstd.ZstdCompressionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcompress(ca.spottedleaf.ioutil.buffer.Buffer src, int maxRead, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite) static intcompress(ca.spottedleaf.ioutil.buffer.Buffer src, int toRead, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdCompressCtx> ctxConsumer) static intcompress(MemorySegment src, int srcOff, int srcLen, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite) static intcompress(MemorySegment src, int srcOff, int srcLen, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdCompressCtx> ctxConsumer) static intdecompress(ca.spottedleaf.ioutil.buffer.Buffer src, int maxRead, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite) static intdecompress(ca.spottedleaf.ioutil.buffer.Buffer src, int toRead, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdDecompressCtx> ctxConsumer) static intdecompress(MemorySegment src, int srcOff, int srcLen, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite) static intdecompress(MemorySegment src, int srcOff, int srcLen, ca.spottedleaf.ioutil.buffer.Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdDecompressCtx> ctxConsumer)
-
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
-