| Modifier and Type | Field and Description |
|---|---|
| public static final int | ZSTD_BLOCKSIZE_MAX_MIN
The minimum valid max blocksize. |
| public static final int | ZSTD_c_blockDelimiters
Default is |
| public static final int | ZSTD_c_deterministicRefPrefix
Default is |
| public static final int | ZSTD_c_enableDedicatedDictSearch
Controls whether the new and experimental "dedicated dictionary search structure" can be used. |
| public static final int | ZSTD_c_enableSeqProducerFallback
Allowed values are 0 (disable) and 1 (enable). |
| public static final int | ZSTD_c_forceAttachDict
Controls whether the contents of a |
| public static final int | ZSTD_c_forceMaxWindow
Force back-reference distances to remain < |
| public static final int | ZSTD_c_format
Select a compression format. |
| public static final int | ZSTD_c_literalCompressionMode
Controlled with |
| public static final int | ZSTD_c_maxBlockSize
Allowed values are between 1KB and |
| public static final int | ZSTD_c_prefetchCDictTables
Controlled with ZSTD_paramSwitch_e enum. |
| public static final int | ZSTD_c_rsyncable
Enables |
| public static final int | ZSTD_c_searchForExternalRepcodes
This parameter affects how zstd parses external sequences, such as sequences provided through the |
| public static final int | ZSTD_c_srcSizeHint
User's best guess of source size. |
| public static final int | ZSTD_c_stableInBuffer
Experimental parameter. |
| public static final int | ZSTD_c_stableOutBuffer
Experimental parameter. |
| public static final int | ZSTD_c_targetCBlockSize
Tries to fit compressed block size to be around |
| public static final int | ZSTD_c_useBlockSplitter
Controlled with |
| public static final int | ZSTD_c_useRowMatchFinder
Controlled with |
| public static final int | ZSTD_c_validateSequences
Default is |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | ZSTD_d_disableHuffmanAssembly
Set to 1 to disable the Huffman assembly implementation. |
| public static final int | ZSTD_d_forceIgnoreChecksum
Experimental parameter. |
| public static final int | ZSTD_d_format
Experimental parameter. |
| public static final int | ZSTD_d_ignoreChecksum
This enum controls |
| public static final int | ZSTD_d_refMultipleDDicts
Experimental parameter. |
| public static final int | ZSTD_d_stableOutBuffer
Experimental parameter. |
| public static final int | ZSTD_d_validateChecksum
This enum controls |
| public static final int | ZSTD_dct_auto
|
| public static final int | ZSTD_dct_fullDict
|
| public static final int | ZSTD_dct_rawContent
|
| public static final int | ZSTD_dictDefaultAttach
|
| public static final int | ZSTD_dictForceAttach
|
| public static final int | ZSTD_dictForceCopy
|
| public static final int | ZSTD_dictForceLoad
|
| public static final int | ZSTD_dlm_byCopy
|
| public static final int | ZSTD_dlm_byRef
|
| public static final int | ZSTD_f_zstd1
|
| public static final int | ZSTD_f_zstd1_magicless
|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | ZSTD_lcm_auto
|
| public static final int | ZSTD_lcm_huffman
|
| public static final int | ZSTD_lcm_uncompressed
|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | ZSTD_rmd_refMultipleDDicts
This enum controls |
| public static final int | ZSTD_rmd_refSingleDDict
This enum controls |
| public static final int | |
| public static final long | |
| public static final int | ZSTD_sf_explicitBlockDelimiters
|
| public static final int | ZSTD_sf_noBlockDelimiters
|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | ZSTDnit_block
|
| public static final int | ZSTDnit_blockHeader
|
| public static final int | ZSTDnit_checksum
|
| public static final int | ZSTDnit_frameHeader
|
| public static final int | ZSTDnit_lastBlock
|
| public static final int | ZSTDnit_skippableFrame
|
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |||
|---|---|---|---|---|
| public static native void | nZSTD_adjustCParams(long cPar, long srcSize, long dictSize, long __result)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | nZSTD_CCtx_loadDictionary_advanced(long cctx, long dict, long dictSize, int dictLoadMethod, int dictContentType)
Unsafe version of: | |||
| public static native long | nZSTD_CCtx_loadDictionary_byReference(long cctx, long dict, long dictSize)
Unsafe version of: | |||
| public static native long | nZSTD_CCtx_refPrefix_advanced(long cctx, long prefix, long prefixSize, int dictContentType)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | ||||
| public static native long | ||||
| public static native long | nZSTD_CCtx_setParametersUsingCCtxParams(long cctx, long params)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | nZSTD_CCtxParams_getParameter(long params, int param, long value)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | nZSTD_CCtxParams_init_advanced(long cctxParams, long params)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | nZSTD_CCtxParams_setParameter(long params, int param, int value)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | nZSTD_compressSequences(long cctx, long dst, long dstSize, long inSeqs, long inSeqsSize, long src, long srcSize)
Unsafe version of: | |||
| public static native long | nZSTD_compressStream2_simpleArgs(long cctx, long dst, long dstCapacity, long dstPos, long src, long srcSize, long srcPos, int endOp)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | nZSTD_createCDict_advanced(long dict, long dictSize, int dictLoadMethod, int dictContentType, long cParams, long customMem)
Unsafe version of: | |||
| public static native long | nZSTD_createCDict_advanced2(long dict, long dictSize, int dictLoadMethod, int dictContentType, long cctxParams, long customMem)
Unsafe version of: | |||
| public static native long | nZSTD_createCDict_byReference(long dictBuffer, long dictSize, int compressionLevel)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | ||||
| public static native long | nZSTD_createDDict_advanced(long dict, long dictSize, int dictLoadMethod, int dictContentType, long customMem)
Unsafe version of: | |||
| public static native long | nZSTD_createDDict_byReference(long dictBuffer, long dictSize)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | ||||
| public static native long | nZSTD_DCtx_loadDictionary_advanced(long dctx, long dict, long dictSize, int dictLoadMethod, int dictContentType)
Unsafe version of: | |||
| public static native long | nZSTD_DCtx_loadDictionary_byReference(long dctx, long dict, long dictSize)
Unsafe version of: | |||
| public static native long | nZSTD_DCtx_refPrefix_advanced(long dctx, long prefix, long prefixSize, int dictContentType)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | ||||
| public static native long | ||||
| public static native long | ||||
| public static native long | nZSTD_decompressBound(long src, long
must be the exact size of this series (i.e. there should be a frame boundary at srcSize)src + srcSize)Unsafe version of: | |||
| public static native long | ||||
| public static native long | nZSTD_decompressionMargin(long src, long
the size of the compressed frame(s) srcSize)Unsafe version of: | |||
| public static native long | nZSTD_decompressStream_simpleArgs(long dctx, long dst, long dstCapacity, long dstPos, long src, long srcSize, long srcPos)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | ||||
| public static native long | nZSTD_estimateCDictSize_advanced(long dictSize, long cParams, int dictLoadMethod)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | ||||
| public static native long | ||||
| public static native long | nZSTD_findDecompressedSize(long src, long
must be the exact size of this series (i.e. there should be a frame boundary exactly at srcSize)srcSize bytes after src + srcSize)Unsafe version of: | |||
| public static native long | nZSTD_frameHeaderSize(long src, long
must be ≥ srcSize)ZSTD_FRAMEHEADERSIZE_PREFIXUnsafe version of: | |||
| public static native long | nZSTD_generateSequences(long zc, long outSeqs, long outSeqsSize, long src, long srcSize)
Unsafe version of: | |||
| public static native void | nZSTD_getCParams(int compressionLevel, long estimatedSrcSize, long dictSize, long __result)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | nZSTD_getFrameHeader_advanced(long zfhPtr, long src, long srcSize, int format)
Unsafe version of: | |||
| public static native void | ||||
| public static native void | nZSTD_getParams(int compressionLevel, long estimatedSrcSize, long dictSize, long __result)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | nZSTD_initStaticCDict(long workspace, long workspaceSize, long dict, long dictSize, int dictLoadMethod, int dictContentType, long cParams)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | ||||
| public static native long | nZSTD_initStaticDDict(long workspace, long workspaceSize, long dict, long dictSize, int dictLoadMethod, int dictContentType)
Unsafe version of: | |||
| public static native long | ||||
| public static native int | ||||
| public static native int | ||||
| public static native long | ||||
| public static native int | ||||
| public static native long | ||||
| public static native long | nZSTD_readSkippableFrame(long dst, long dstCapacity, long magicVariant, long src, long srcSize)
Unsafe version of: | |||
| public static native void | nZSTD_registerSequenceProducer(long cctx, long sequenceProducerState, long sequenceProducer)
Unsafe version of: | |||
| public static native long | ||||
| public static native long | nZSTD_writeSkippableFrame(long dst, long dstCapacity, long src, long srcSize, int magicVariant)
Unsafe version of: | |||
| public static ZSTDCompressionParameters | ZSTD_adjustCParams(ZSTDCompressionParameters cPar, long srcSize, long dictSize, ZSTDCompressionParameters __result)
Optimizes params for a given | |||
| public static long | Returns: 0, or an error code (which can be tested withisError)one of: param, IntBuffer value)Gets the requested compression parameter value, selected by | |||
| public static long | ZSTD_CCtx_loadDictionary_advanced(long cctx, ByteBuffer dict, int
one of: dictLoadMethod, int dictContentType)
Same as | |||
| public static long | ZSTD_CCtx_loadDictionary_byReference(long cctx, ByteBuffer dict)
Same as | |||
| public static long | ZSTD_CCtx_refPrefix_advanced(long cctx, ByteBuffer prefix, int dictContentType)
Same as | |||
| public static long | ZSTD_CCtx_refThreadPool(long cctx, long pool)
Assigns a thread pool to a context (use | |||
| public static long | Returns: 0 on success, or an error code (can be checked withisError). On failure, no parameters are updated.Set all parameters provided within | |||
| public static long | ZSTD_CCtx_setFParams(long cctx, ZSTDFrameParameters fparams)
Set all parameters provided within | |||
| public static long | ZSTD_CCtx_setParametersUsingCCtxParams(long cctx, long params)
Applies a set of | |||
| public static long | ZSTD_CCtx_setParams(long cctx, ZSTDParameters params)
Set all parameters provided within | |||
| public static long | Returns: 0, or an error code (which can be tested withisError)one of: param, IntBuffer value)Similar to | |||
| public static long | ZSTD_CCtxParams_init(long cctxParams, int compressionLevel)
Initializes the compression parameters of | |||
| public static long | ZSTD_CCtxParams_init_advanced(long cctxParams, ZSTDParameters params)
Initializes the compression and frame parameters of | |||
| public static long | ||||
| public static long | Returns: a code representing success or failure (which can be tested withisError)one of: param, int value)Similar to | |||
| public static long | Returns: 0 on success, or an error code (can be checked withisError)Ensures param values remain within authorized range. | |||
| public static long | Returns: final compressed size, or a ZSTD error code.Compress an array of | |||
| public static long | ZSTD_compressStream2_simpleArgs(long cctx, ByteBuffer dst, PointerBuffer dstPos, ByteBuffer src, PointerBuffer srcPos, int
one of: endOp)
Same as | |||
| public static long | ||||
| public static native long | ||||
| public static long | ZSTD_createCDict_advanced(ByteBuffer dict, int
one of: dictLoadMethod, int dictContentType, ZSTDCompressionParameters cParams, ZSTDCustomMem customMem)
| |||
| public static long | ZSTD_createCDict_advanced2(ByteBuffer dict, int
one of: dictLoadMethod, int dictContentType, long cctxParams, ZSTDCustomMem customMem)
| |||
| public static long | ZSTD_createCDict_byReference(ByteBuffer dictBuffer, int compressionLevel)
Creates a digested dictionary for compression Dictionary content is just referenced, not duplicated. | |||
| public static long | ||||
| public static long | ||||
| public static long | ZSTD_createDDict_advanced(ByteBuffer dict, int
one of: dictLoadMethod, int dictContentType, ZSTDCustomMem customMem)
| |||
| public static long | ZSTD_createDDict_byReference(ByteBuffer dictBuffer)
Creates a digested dictionary, ready to start decompression operation without startup delay. | |||
| public static long | ||||
| public static native long | ||||
| public static long | Returns: 0, or an error code (which can be tested withisError)Gets the requested decompression parameter value, selected by enum | |||
| public static long | ZSTD_DCtx_loadDictionary_advanced(long dctx, ByteBuffer dict, int
one of: dictLoadMethod, int dictContentType)
Same as | |||
| public static long | ZSTD_DCtx_loadDictionary_byReference(long dctx, ByteBuffer dict)
Same as | |||
| public static long | ZSTD_DCtx_refPrefix_advanced(long dctx, ByteBuffer prefix, int dictContentType)
Same as | |||
| public static long | Returns: 0, or an error code (which can be tested usingisError)Refuses allocating internal buffers for frames requiring a window size larger than provided limit. | |||
| public static native long | ||||
| public static long | ||||
| public static long | ||||
| public static long | ||||
| public static long | Returns: upper-bound for the decompressed size of all data in all successive frames, orCONTENTSIZE_ERROR if an error occurredshould point to the start of a series of ZSTD encoded and/or skippable frames src)Note 1: an error can occur if | |||
| public static long | ||||
| public static long | ZSTD_DECOMPRESSION_MARGIN(long
the original uncompressed size of the data originalSize, long the block blockSize)size == MIN(windowSize, ZSTD_BLOCKSIZE_MAX). Unless you explicitly set the windowLog smaller than
ZSTD_BLOCKSIZELOG_MAX you can just use ZSTD_BLOCKSIZE_MAX.Similar to | |||
| public static long | Returns: the decompression margin or an error that can be checked withisError.the compressed frame(s) src)Zstd supports in-place decompression, where the input and output buffers overlap. | |||
| public static long | ZSTD_decompressStream_simpleArgs(long dctx, ByteBuffer dst, PointerBuffer dstPos, ByteBuffer src, PointerBuffer srcPos)
Same as | |||
| public static native long | ZSTD_estimateCCtxSize(int compressionLevel)
Estimages memory usage of a future | |||
| public static long | ||||
| public static long | ||||
| public static native long | ||||
| public static long | ZSTD_estimateCDictSize_advanced(long dictSize, ZSTDCompressionParameters cParams, int
one of: dictLoadMethod)
| |||
| public static native long | ZSTD_estimateCStreamSize(int compressionLevel)
Provides a budget large enough for any compression level up to selected one. | |||
| public static long | ||||
| public static long | ||||
| public static native long | ||||
| public static native long | ||||
| public static native long | ||||
| public static long | ||||
| public static long | Returns:
should point to the start of a series of ZSTD encoded and/or skippable frames src)Note 1: decompressed size is an optional field, that may not be present, especially in streaming mode. | |||
| public static long | Returns: : size of the Frame Header, or an error code (if srcSize is too small)
| |||
| public static int | ||||
| public static int | ||||
| public static native long | ||||
| public static native void | ||||
| public static long | Returns: number of sequences generatedGenerate sequences using | |||
| public static ZSTDCompressionParameters | ZSTD_getCParams(int compressionLevel, long
optional, select 0 if not known estimatedSrcSize, long dictSize, ZSTDCompressionParameters __result)Returns | |||
| public static long | Returns: 0,zfhPtr is correctly filled, >0, srcSize is too small, value is wanted srcSize amount, or an error code, which can be
tested using isErrorDecode Frame Header, or requires larger | |||
| public static long | ZSTD_getFrameHeader_advanced(ZSTDFrameHeader zfhPtr, ByteBuffer src, int
one of: format)
Same as | |||
| public static ZSTDFrameProgression | ZSTD_getFrameProgression(long cctx, ZSTDFrameProgression __result)
Tells how much data has been ingested (read from input) consumed (input actually compressed) and produced (output) for current frame. | |||
| public static ZSTDParameters | ZSTD_getParams(int compressionLevel, long
optional, select 0 if not known estimatedSrcSize, long dictSize, ZSTDParameters __result)Same as getCParams(), but returns a full | |||
| public static long | ||||
| public static long | ZSTD_initStaticCDict(ByteBuffer workspace, ByteBuffer dict, int
one of: dictLoadMethod, int dictContentType, ZSTDCompressionParameters cParams)
| |||
| public static long | ||||
| public static long | ||||
| public static long | ZSTD_initStaticDDict(ByteBuffer workspace, ByteBuffer dict, int
one of: dictLoadMethod, int dictContentType)
| |||
| public static long | ||||
| public static boolean | ||||
| public static boolean | ZSTD_isSkippableFrame(ByteBuffer buffer)
Tells if the content of | |||
| public static long | Returns: number of sequences left after mergingGiven an array of | |||
| public static int | ||||
| public static long | ||||
| public static long | Returns: number of bytes written or a ZSTD errorRetrieves a zstd skippable frame containing data given by | |||
| public static void | ZSTD_registerSequenceProducer(long cctx, long sequenceProducerState, ZSTDSequenceProducerI sequenceProducer)
Instruct zstd to use a block-level external sequence producer function. | |||
| public static native long | Returns: upper-bound for the number of sequences that can be generated from a buffer ofsrcSize bytessize of the input buffer srcSize)
| |||
| public static long | Returns: amount of data stored in oldest job and ready to be flushed immediately. If== 0, it means either:
Tells how many bytes are ready to be flushed immediately. | |||
| public static long | Returns: number of bytes written or a ZSTD errorGenerates a zstd skippable frame containing data given by |