Package io.airlift.compress.v3.lz4
Class Lz4NativeDecompressor
java.lang.Object
io.airlift.compress.v3.lz4.Lz4NativeDecompressor
- All Implemented Interfaces:
Decompressor,Lz4Decompressor
-
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) static boolean
-
Constructor Details
-
Lz4NativeDecompressor
public Lz4NativeDecompressor()
-
-
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- Specified by:
decompressin interfaceLz4Decompressor- Returns:
- number of bytes written to the output
-