java.lang.Object
org.elasticsearch.nativeaccess.Zstd
-
Method Summary
Modifier and TypeMethodDescriptionintcompress(CloseableByteBuffer dst, CloseableByteBuffer src, int level) Compress the content ofsrcintodstat compression levellevel, and return the number of compressed bytes.intcompressBound(int srcLen) Return the maximum number of compressed bytes given an input length.intdecompress(CloseableByteBuffer dst, CloseableByteBuffer src) Compress the content ofsrcintodst, and return the number of decompressed bytes.
-
Method Details
-
compress
Compress the content ofsrcintodstat compression levellevel, and return the number of compressed bytes.Buffer.position()andBuffer.limit()of bothByteBuffers are left unmodified. -
decompress
Compress the content ofsrcintodst, and return the number of decompressed bytes.Buffer.position()andBuffer.limit()of bothByteBuffers are left unmodified. -
compressBound
public int compressBound(int srcLen) Return the maximum number of compressed bytes given an input length.
-