Class Zstd
java.lang.Object
dev.hallock.zstd.Zstd
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZstdResultcompress(MemorySegment dst, long dstCapacity, MemorySegment src, long srcSize, int compressionLevel) static longcompressBound(long srcSize) static ZstdResultdecompress(MemorySegment dst, long dstCapacity, MemorySegment src, long compressedSize) static longdecompressBound(MemorySegment src, long srcSize) static intstatic intdictIdFromDict(MemorySegment dict, long dictSize) static intdictIdFromFrame(MemorySegment frame, long srcSize) static longfindFrameCompressedSize(MemorySegment src, long srcSize) static intgetErrorCode(long result) static StringgetErrorName(long result) static booleanisError(long result) static intstatic intstatic intstatic intstatic String
-
Method Details
-
decompress
public static ZstdResult decompress(MemorySegment dst, long dstCapacity, MemorySegment src, long compressedSize) -
compress
public static ZstdResult compress(MemorySegment dst, long dstCapacity, MemorySegment src, long srcSize, int compressionLevel) -
compressBound
public static long compressBound(long srcSize) -
decompressBound
-
isError
public static boolean isError(long result) -
getErrorCode
public static int getErrorCode(long result) -
getErrorName
-
defaultCompressionLevel
public static int defaultCompressionLevel() -
minCompressionLevel
public static int minCompressionLevel() -
maxCompressionLevel
public static int maxCompressionLevel() -
findFrameCompressedSize
-
dictIdFromDict
-
dictIdFromFrame
-
versionNumber
public static int versionNumber() -
versionString
-
magicNumber
public static int magicNumber()
-