Package io.airlift.compress.v3.zstd
Class ZstdNativeDecompressor
java.lang.Object
io.airlift.compress.v3.zstd.ZstdNativeDecompressor
- All Implemented Interfaces:
Decompressor,ZstdDecompressor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength) intdecompress(MemorySegment input, MemorySegment output) longgetDecompressedSize(byte[] input, int offset, int length) static boolean
-
Constructor Details
-
ZstdNativeDecompressor
public ZstdNativeDecompressor()
-
-
Method Details
-
isEnabled
public static boolean isEnabled() -
decompress
public int decompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength) - Specified by:
decompressin interfaceDecompressor- Returns:
- number of bytes written to the output
-
decompress
- Specified by:
decompressin interfaceDecompressor- Returns:
- number of bytes written to the output
-
getDecompressedSize
public long getDecompressedSize(byte[] input, int offset, int length) - Specified by:
getDecompressedSizein interfaceZstdDecompressor
-