Package io.airlift.compress.zstd
Class ZstdDecompressor
java.lang.Object
io.airlift.compress.zstd.ZstdDecompressor
- All Implemented Interfaces:
Decompressor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength)voiddecompress(ByteBuffer inputBuffer, ByteBuffer outputBuffer)static longgetDecompressedSize(byte[] input, int offset, int length)
-
Constructor Details
-
ZstdDecompressor
public ZstdDecompressor()
-
-
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
public void decompress(ByteBuffer inputBuffer, ByteBuffer outputBuffer) throws MalformedInputException- Specified by:
decompressin interfaceDecompressor- Throws:
MalformedInputException
-
getDecompressedSize
public static long getDecompressedSize(byte[] input, int offset, int length)
-