Class CompressionUtil
java.lang.Object
ca.spottedleaf.ioutil.util.CompressionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic intstatic intdeflate(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite) static intdeflate(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite, Consumer<Deflater> deflaterConsumer) static intstatic intstatic intinflate(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite) static intinflate(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite, Consumer<Inflater> inflaterConsumer) static intzstdCompress(Buffer src, int maxRead, Buffer dst, int maxWrite) static intzstdCompress(Buffer src, int toRead, Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdCompressCtx> ctxConsumer) static intzstdCompress(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite) static intzstdCompress(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdCompressCtx> ctxConsumer) static intzstdDecompress(Buffer src, int maxRead, Buffer dst, int maxWrite) static intzstdDecompress(Buffer src, int toRead, Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdDecompressCtx> ctxConsumer) static intzstdDecompress(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite) static intzstdDecompress(MemorySegment src, int srcOff, int srcLen, Buffer dst, int maxWrite, Consumer<com.github.luben.zstd.ZstdDecompressCtx> ctxConsumer)
-
Method Details
-
deflate
-
deflate
-
deflate
-
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
-
zstdCompress
-
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
-
zstdDecompress
-
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
-