Package io.airlift.compress.v3.zstd
Class ZstdJavaDecompressor
java.lang.Object
io.airlift.compress.v3.zstd.ZstdJavaDecompressor
- 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)
-
Constructor Details
-
ZstdJavaDecompressor
public ZstdJavaDecompressor()
-
-
Method Details
-
decompress
public int decompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength) throws MalformedInputException - Specified by:
decompressin interfaceDecompressor- Returns:
- number of bytes written to the output
- Throws:
MalformedInputException
-
decompress
- Specified by:
decompressin interfaceDecompressor- Returns:
- number of bytes written to the output
- Throws:
MalformedInputException
-
getDecompressedSize
public long getDecompressedSize(byte[] input, int offset, int length) - Specified by:
getDecompressedSizein interfaceZstdDecompressor
-