| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int | |
| private byte[] | |
| private ZstdDictCompress | |
| private boolean | |
| private int | |
| private int | |
| private final long | |
| private ByteBuffer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. |
| public void | |
| private native long | compressDirectByteBuffer(long ctx, ByteBuffer dst, int dstOffset, int dstSize, ByteBuffer src, int srcOffset, int srcSize)
|
| private static native long | |
| private native long | |
| public void | flush()
Implements java. |
| protected ByteBuffer | Returns: the new buffer to use, for most cases the same as the one passed in, after a call toByteBuffer#clear().buffer that has to be flushed (or most cases, you want to call toFlush)ByteBuffer#flip() first)This method should flush the buffer and either return the same buffer (but cleared) or a new buffer that should be used from then on. |
| private native long | |
| private static native long | |
| private native long | |
| private native long | |
| private native long | |
| private static native long | |
| public static int | |
| public ZstdDirectBufferCompressingStreamNoFinalizer | |
| public ZstdDirectBufferCompressingStreamNoFinalizer |
| closed | back to summary |
|---|---|
| private boolean closed | |
| consumed | back to summary |
|---|---|
| private int consumed | |
| dict | back to summary |
|---|---|
| private byte[] dict | |
| fastDict | back to summary |
|---|---|
| private ZstdDictCompress fastDict | |
| initialized | back to summary |
|---|---|
| private boolean initialized | |
| level | back to summary |
|---|---|
| private int level | |
| produced | back to summary |
|---|---|
| private int produced | |
| stream | back to summary |
|---|---|
| private final long stream | |
| target | back to summary |
|---|---|
| private ByteBuffer target | |
| ZstdDirectBufferCompressingStreamNoFinalizer | back to summary |
|---|---|
| public ZstdDirectBufferCompressingStreamNoFinalizer(ByteBuffer target, int level) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| compress | back to summary |
|---|---|
| public void compress(ByteBuffer source) throws IOException | |
| compressDirectByteBuffer | back to summary |
|---|---|
| private native long compressDirectByteBuffer(long ctx, ByteBuffer dst, int dstOffset, int dstSize, ByteBuffer src, int srcOffset, int srcSize) | |
| createCStream | back to summary |
|---|---|
| private static native long createCStream() | |
| endStream | back to summary |
|---|---|
| private native long endStream(long ctx, ByteBuffer dst, int dstOffset, int dstSize) | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements java. Doc from java. Flushes this stream by writing any buffered output to the underlying stream.
| |
| flushBuffer | back to summary |
|---|---|
| protected ByteBuffer flushBuffer(ByteBuffer toFlush) throws IOException This method should flush the buffer and either return the same buffer (but cleared) or a new buffer that should be used from then on.
| |
| flushStream | back to summary |
|---|---|
| private native long flushStream(long ctx, ByteBuffer dst, int dstOffset, int dstSize) | |
| freeCStream | back to summary |
|---|---|
| private static native long freeCStream(long ctx) | |
| initCStream | back to summary |
|---|---|
| private native long initCStream(long ctx, int level) | |
| initCStreamWithDict | back to summary |
|---|---|
| private native long initCStreamWithDict(long ctx, byte[] dict, int dict_size, int level) | |
| initCStreamWithFastDict | back to summary |
|---|---|
| private native long initCStreamWithFastDict(long ctx, ZstdDictCompress dict) | |
| recommendedCOutSize | back to summary |
|---|---|
| private static native long recommendedCOutSize() | |
| recommendedOutputBufferSize | back to summary |
|---|---|
| public static int recommendedOutputBufferSize() | |
| setDict | back to summary |
|---|---|
| public ZstdDirectBufferCompressingStreamNoFinalizer setDict(byte[] dict) | |
| setDict | back to summary |
|---|---|
| public ZstdDirectBufferCompressingStreamNoFinalizer setDict(ZstdDictCompress dict) | |