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