Crate zstud_sys

Source

Structs§

BIT_CStream_t
BIT_DStream_t
DTableDesc
FSE_CState_t
This API consists of small unitary functions, which highly benefit from being inlined. Hence their body are included in next section.
FSE_DState_t
FSE_DTableHeader
FSE_DecompressWksp
FSE_decode_t
FSE_symbolCompressionTransform
HUF_DEltX1
HUF_DEltX2
HUF_DecompressFastArgs
The input/output arguments to the Huffman fast decoding loop:
HUF_ReadDTableX1_Workspace
HUF_ReadDTableX2_Workspace
POOL_ctx_s
XXH_NAMESPACEXXH32_canonical_t
@brief Canonical (big endian) representation of @ref XXH32_hash_t.
XXH_NAMESPACEXXH32_state_s
@internal @brief Structure for XXH32 streaming API.
XXH_NAMESPACEXXH64_canonical_t
Canonical representation
XXH_NAMESPACEXXH64_state_s
@internal @brief Structure for XXH64 streaming API.
ZSTD_CCtx_params_s
ZSTD_CCtx_s
ZSTD_CDict_s
ZSTD_DCtx_s
ZSTD_DDictHashSet
ZSTD_DDict_s
ZSTD_OffsetInfo
ZSTD_Sequence
ZSTD_bounds
ZSTD_compressionParameters
ZSTD_cpuid_t
ZSTD_customMem
ZSTD_entropyDTables_t
ZSTD_frameHeader
ZSTD_frameParameters
ZSTD_frameProgression
ZSTD_frameSizeInfo
Contains the compressed frame size and an upper-bound for the decompressed frame size. Note: before using compressedSize, check for errors using ZSTD_isError(). similarly, before using decompressedBound, check for errors using: decompressedBound != ZSTD_CONTENTSIZE_ERROR
ZSTD_fseState
ZSTD_inBuffer_s
Streaming
ZSTD_outBuffer_s
ZSTD_parameters
ZSTD_seqSymbol
ZSTD_seqSymbol_header
ZSTD_sequenceLength
__atomic_wide_counter__bindgen_ty_1
__fsid_t
__locale_data
__locale_struct
__once_flag
__pthread_cond_s
__pthread_internal_list
__pthread_internal_slist
__pthread_mutex_s
__pthread_rwlock_arch_t
__sigset_t
algo_time_t
blockProperties_t
div_t
drand48_data
fd_set
ldiv_t
lldiv_t
max_align_t
random_data
seqDef_s
seqState_t
seqStore_t
seq_t
sortedSymbol_t
timespec
timeval

Constants§

ADVANCED_SEQS
AIO_PRIO_DELTA_MAX
ARG_MAX
BC_BASE_MAX
BC_DIM_MAX
BC_SCALE_MAX
BC_STRING_MAX
BIG_ENDIAN
BIT0
BIT1
BIT4
BIT5
BIT6
BIT7
BIT_DStream_status_BIT_DStream_completed
BIT_DStream_status_BIT_DStream_endOfBuffer
BIT_DStream_status_BIT_DStream_overflow
BIT_DStream_status_BIT_DStream_unfinished
BYTE_ORDER
CACHELINE_SIZE
CHARCLASS_NAME_MAX
COLL_WEIGHTS_MAX
DDICT_HASHSET_MAX_LOAD_FACTOR_COUNT_MULT
DDICT_HASHSET_MAX_LOAD_FACTOR_SIZE_MULT
DDICT_HASHSET_RESIZE_FACTOR
DDICT_HASHSET_TABLE_BASE_SIZE
DEBUGLEVEL
DELAYTIMER_MAX
DYNAMIC_BMI2
DefaultMaxOff
EXIT_FAILURE
EXIT_SUCCESS
EXPR_NEST_MAX
FD_SETSIZE
FSE_DEFAULT_MEMORY_USAGE
FSE_DEFAULT_TABLELOG
FSE_MAXTABLESIZE_MASK
FSE_MAX_MEMORY_USAGE
FSE_MAX_SYMBOL_VALUE
FSE_MAX_TABLELOG
FSE_MAX_TABLESIZE
FSE_MIN_TABLELOG
FSE_NCOUNTBOUND
FSE_TABLELOG_ABSOLUTE_MAX
FSE_VERSION_MAJOR
FSE_VERSION_MINOR
FSE_VERSION_NUMBER
FSE_VERSION_RELEASE
FSE_repeat_FSE_repeat_check
< Can use the previous table but it must be checked
FSE_repeat_FSE_repeat_none
< Cannot use the previous table
FSE_repeat_FSE_repeat_valid
< Can use the previous table and it is assumed to be valid
HOST_NAME_MAX
HUF_BLOCKSIZE_MAX
HUF_CTABLEBOUND
HUF_CTABLE_WORKSPACE_SIZE_U32
HUF_DECODER_FAST_TABLELOG
HUF_DECOMPRESS_WORKSPACE_SIZE
HUF_NEED_BMI2_FUNCTION
HUF_SYMBOLVALUE_MAX
HUF_TABLELOG_ABSOLUTEMAX
HUF_TABLELOG_DEFAULT
HUF_TABLELOG_MAX
HUF_WORKSPACE_SIZE
HUF_flags_e_HUF_flags_bmi2
If compiled with DYNAMIC_BMI2: Set flag only if the CPU supports BMI2 at runtime. Otherwise: Ignored.
HUF_flags_e_HUF_flags_disableAsm
If set: Don’t use assembly implementations If unset: Allow using assembly implementations
HUF_flags_e_HUF_flags_disableFast
If set: Don’t use the fast decoding loop, always use the fallback decoding loop. If unset: Use the fast decoding loop when possible.
HUF_flags_e_HUF_flags_optimalDepth
If set: Test possible table depths to find the one that produces the smallest header + encoded size. If unset: Use heuristic to find the table depth.
HUF_flags_e_HUF_flags_preferRepeat
If set: If the previous table can encode the input, always reuse the previous table. If unset: If the previous table can encode the input, reuse the previous table if it results in a smaller output.
HUF_flags_e_HUF_flags_suspectUncompressible
If set: Sample the input and check if the sample is uncompressible, if it is then don’t attempt to compress. If unset: Always histogram the entire input.
HUF_repeat_HUF_repeat_check
< Can use the previous table but it must be checked. Note : The previous table must have been constructed by HUF_compress{1, 4}X_repeat
HUF_repeat_HUF_repeat_none
< Cannot use the previous table
HUF_repeat_HUF_repeat_valid
< Can use the previous table and it is assumed to be valid
INT8_MAX
INT8_MIN
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
LINE_MAX
LINK_MAX
LITTLE_ENDIAN
LLFSELog
LL_DEFAULTNORMLOG
LL_defaultNormLog
LOGIN_NAME_MAX
LONGNBSEQ
LitHufLog
Litbits
MAX_CANON
MAX_INPUT
MB_LEN_MAX
MEM_FORCE_MEMORY_ACCESS
MINMATCH
MIN_CBLOCK_SIZE
MIN_LITERALS_FOR_4_STREAMS
MIN_SEQUENCES_SIZE
MLFSELog
ML_DEFAULTNORMLOG
ML_defaultNormLog
MQ_PRIO_MAX
MaxLL
MaxLLBits
MaxLit
MaxML
MaxMLBits
MaxOff
NAME_MAX
NGROUPS_MAX
NR_OPEN
OF_DEFAULTNORMLOG
OF_defaultNormLog
OffFSELog
PATH_MAX
PDP_ENDIAN
PIPE_BUF
PTHREAD_DESTRUCTOR_ITERATIONS
PTHREAD_KEYS_MAX
PTHREAD_STACK_MIN
PTRDIFF_MAX
PTRDIFF_MIN
RAND_MAX
RE_DUP_MAX
RTSIG_MAX
SEM_VALUE_MAX
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
STATIC_BMI2
STORED_SEQS
STORED_SEQS_MASK
STREAM_ACCUMULATOR_MIN_32
STREAM_ACCUMULATOR_MIN_64
TTY_NAME_MAX
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WCONTINUED
WEXITED
WILDCOPY_OVERLENGTH
WILDCOPY_VECLEN
WINT_MAX
WINT_MIN
WNOHANG
WNOWAIT
WSTOPPED
WUNTRACED
XATTR_LIST_MAX
XATTR_NAME_MAX
XATTR_SIZE_MAX
XXH32_ENDJMP
XXHASH_H_5627135585666179
XXH_CPU_LITTLE_ENDIAN
XXH_DEBUGLEVEL
XXH_FORCE_ALIGN_CHECK
XXH_NAMESPACEXXH_errorcode_XXH_NAMESPACEXXH_ERROR
XXH_NAMESPACEXXH_errorcode_XXH_NAMESPACEXXH_OK
XXH_NO_INLINE_HINTS
XXH_PRIME32_1
XXH_PRIME32_2
XXH_PRIME32_3
XXH_PRIME32_4
XXH_PRIME32_5
XXH_PRIME64_1
XXH_PRIME64_2
XXH_PRIME64_3
XXH_PRIME64_4
XXH_PRIME64_5
XXH_VERSION_MAJOR
XXH_VERSION_MINOR
XXH_VERSION_NUMBER
XXH_VERSION_RELEASE
XXH_alignment_XXH_aligned
< Aligned
XXH_alignment_XXH_unaligned
< Possibly unaligned
ZSTD_ADDRESS_SANITIZER
ZSTD_ASM_SUPPORTED
ZSTD_BLOCKHEADERSIZE
ZSTD_BLOCKSIZELOG_MAX
ZSTD_BLOCKSIZE_MAX
ZSTD_BLOCKSIZE_MAX_MIN
ZSTD_CHAINLOG_MAX_32
ZSTD_CHAINLOG_MAX_64
ZSTD_CHAINLOG_MIN
ZSTD_CLEVEL_DEFAULT
ZSTD_CONTENTSIZE_ERROR
ZSTD_CONTENTSIZE_UNKNOWN
ZSTD_DATAFLOW_SANITIZER
ZSTD_DECODER_INTERNAL_BUFFER
ZSTD_DISABLE_ASM
ZSTD_ENABLE_ASM_X86_64_BMI2
ZSTD_EndDirective_ZSTD_e_continue
ZSTD_EndDirective_ZSTD_e_end
ZSTD_EndDirective_ZSTD_e_flush
ZSTD_ErrorCode_ZSTD_error_GENERIC
ZSTD_ErrorCode_ZSTD_error_checksum_wrong
ZSTD_ErrorCode_ZSTD_error_corruption_detected
ZSTD_ErrorCode_ZSTD_error_dictionaryCreation_failed
ZSTD_ErrorCode_ZSTD_error_dictionary_corrupted
ZSTD_ErrorCode_ZSTD_error_dictionary_wrong
ZSTD_ErrorCode_ZSTD_error_dstBuffer_null
ZSTD_ErrorCode_ZSTD_error_dstBuffer_wrong
ZSTD_ErrorCode_ZSTD_error_dstSize_tooSmall
ZSTD_ErrorCode_ZSTD_error_externalSequences_invalid
ZSTD_ErrorCode_ZSTD_error_frameIndex_tooLarge
ZSTD_ErrorCode_ZSTD_error_frameParameter_unsupported
ZSTD_ErrorCode_ZSTD_error_frameParameter_windowTooLarge
ZSTD_ErrorCode_ZSTD_error_init_missing
ZSTD_ErrorCode_ZSTD_error_literals_headerWrong
ZSTD_ErrorCode_ZSTD_error_maxCode
ZSTD_ErrorCode_ZSTD_error_maxSymbolValue_tooLarge
ZSTD_ErrorCode_ZSTD_error_maxSymbolValue_tooSmall
ZSTD_ErrorCode_ZSTD_error_memory_allocation
ZSTD_ErrorCode_ZSTD_error_noForwardProgress_destFull
ZSTD_ErrorCode_ZSTD_error_noForwardProgress_inputEmpty
ZSTD_ErrorCode_ZSTD_error_no_error
ZSTD_ErrorCode_ZSTD_error_parameter_combination_unsupported
ZSTD_ErrorCode_ZSTD_error_parameter_outOfBound
ZSTD_ErrorCode_ZSTD_error_parameter_unsupported
ZSTD_ErrorCode_ZSTD_error_prefix_unknown
ZSTD_ErrorCode_ZSTD_error_seekableIO
ZSTD_ErrorCode_ZSTD_error_sequenceProducer_failed
ZSTD_ErrorCode_ZSTD_error_srcBuffer_wrong
ZSTD_ErrorCode_ZSTD_error_srcSize_wrong
ZSTD_ErrorCode_ZSTD_error_stabilityCondition_notRespected
ZSTD_ErrorCode_ZSTD_error_stage_wrong
ZSTD_ErrorCode_ZSTD_error_tableLog_tooLarge
ZSTD_ErrorCode_ZSTD_error_version_unsupported
ZSTD_ErrorCode_ZSTD_error_workSpace_tooSmall
ZSTD_FRAMECHECKSUMSIZE
ZSTD_FRAMEHEADERSIZE_MAX
ZSTD_FRAMEIDSIZE
ZSTD_HASHLOG_MIN
ZSTD_HAVE_WEAK_SYMBOLS
ZSTD_HEAPMODE
ZSTD_HUFFDTABLE_CAPACITY_LOG
ZSTD_LBMAX
ZSTD_LBMIN
ZSTD_LDM_BUCKETSIZELOG_MAX
ZSTD_LDM_BUCKETSIZELOG_MIN
ZSTD_LDM_HASHLOG_MIN
ZSTD_LDM_HASHRATELOG_MIN
ZSTD_LDM_MINMATCH_MAX
ZSTD_LDM_MINMATCH_MIN
ZSTD_LEGACY_SUPPORT
ZSTD_MAGICNUMBER
ZSTD_MAGIC_DICTIONARY
ZSTD_MAGIC_SKIPPABLE_MASK
ZSTD_MAGIC_SKIPPABLE_START
ZSTD_MAX_FSE_HEADERS_SIZE
ZSTD_MAX_HUF_HEADER_SIZE
ZSTD_MEMORY_SANITIZER
ZSTD_MINMATCH_MAX
ZSTD_MINMATCH_MIN
ZSTD_NO_FORWARD_PROGRESS_MAX
ZSTD_OPT_NUM
ZSTD_OVERLAPLOG_MAX
ZSTD_OVERLAPLOG_MIN
ZSTD_REP_NUM
ZSTD_ResetDirective_ZSTD_reset_parameters
ZSTD_ResetDirective_ZSTD_reset_session_and_parameters
ZSTD_ResetDirective_ZSTD_reset_session_only
ZSTD_SEARCHLOG_MIN
ZSTD_SKIPPABLEHEADERSIZE
ZSTD_SRCSIZEHINT_MIN
ZSTD_TARGETCBLOCKSIZE_MAX
ZSTD_TARGETCBLOCKSIZE_MIN
ZSTD_TARGETLENGTH_MAX
ZSTD_TARGETLENGTH_MIN
ZSTD_TRACE
ZSTD_VERSION_MAJOR
ZSTD_VERSION_MINOR
ZSTD_VERSION_NUMBER
ZSTD_VERSION_RELEASE
ZSTD_WINDOWLOG_ABSOLUTEMIN
ZSTD_WINDOWLOG_LIMIT_DEFAULT
ZSTD_WINDOWLOG_MAX_32
ZSTD_WINDOWLOG_MAX_64
ZSTD_WINDOWLOG_MIN
ZSTD_WORKSPACETOOLARGE_FACTOR
ZSTD_WORKSPACETOOLARGE_MAXDURATION
ZSTD_blockHeaderSize
ZSTD_bufferMode_e_ZSTD_bm_buffered
ZSTD_bufferMode_e_ZSTD_bm_stable
ZSTD_cParameter_ZSTD_c_chainLog
ZSTD_cParameter_ZSTD_c_checksumFlag
ZSTD_cParameter_ZSTD_c_compressionLevel
ZSTD_cParameter_ZSTD_c_contentSizeFlag
ZSTD_cParameter_ZSTD_c_dictIDFlag
ZSTD_cParameter_ZSTD_c_enableLongDistanceMatching
ZSTD_cParameter_ZSTD_c_experimentalParam1
ZSTD_cParameter_ZSTD_c_experimentalParam2
ZSTD_cParameter_ZSTD_c_experimentalParam3
ZSTD_cParameter_ZSTD_c_experimentalParam4
ZSTD_cParameter_ZSTD_c_experimentalParam5
ZSTD_cParameter_ZSTD_c_experimentalParam6
ZSTD_cParameter_ZSTD_c_experimentalParam7
ZSTD_cParameter_ZSTD_c_experimentalParam8
ZSTD_cParameter_ZSTD_c_experimentalParam9
ZSTD_cParameter_ZSTD_c_experimentalParam10
ZSTD_cParameter_ZSTD_c_experimentalParam11
ZSTD_cParameter_ZSTD_c_experimentalParam12
ZSTD_cParameter_ZSTD_c_experimentalParam13
ZSTD_cParameter_ZSTD_c_experimentalParam14
ZSTD_cParameter_ZSTD_c_experimentalParam15
ZSTD_cParameter_ZSTD_c_experimentalParam16
ZSTD_cParameter_ZSTD_c_experimentalParam17
ZSTD_cParameter_ZSTD_c_experimentalParam18
ZSTD_cParameter_ZSTD_c_experimentalParam19
ZSTD_cParameter_ZSTD_c_hashLog
ZSTD_cParameter_ZSTD_c_jobSize
ZSTD_cParameter_ZSTD_c_ldmBucketSizeLog
ZSTD_cParameter_ZSTD_c_ldmHashLog
ZSTD_cParameter_ZSTD_c_ldmHashRateLog
ZSTD_cParameter_ZSTD_c_ldmMinMatch
ZSTD_cParameter_ZSTD_c_minMatch
ZSTD_cParameter_ZSTD_c_nbWorkers
ZSTD_cParameter_ZSTD_c_overlapLog
ZSTD_cParameter_ZSTD_c_searchLog
ZSTD_cParameter_ZSTD_c_strategy
ZSTD_cParameter_ZSTD_c_targetLength
ZSTD_cParameter_ZSTD_c_windowLog
ZSTD_dParameter_ZSTD_d_experimentalParam1
ZSTD_dParameter_ZSTD_d_experimentalParam2
ZSTD_dParameter_ZSTD_d_experimentalParam3
ZSTD_dParameter_ZSTD_d_experimentalParam4
ZSTD_dParameter_ZSTD_d_experimentalParam5
ZSTD_dParameter_ZSTD_d_experimentalParam6
ZSTD_dParameter_ZSTD_d_windowLogMax
ZSTD_dStage_ZSTDds_checkChecksum
ZSTD_dStage_ZSTDds_decodeBlockHeader
ZSTD_dStage_ZSTDds_decodeFrameHeader
ZSTD_dStage_ZSTDds_decodeSkippableHeader
ZSTD_dStage_ZSTDds_decompressBlock
ZSTD_dStage_ZSTDds_decompressLastBlock
ZSTD_dStage_ZSTDds_getFrameHeaderSize
ZSTD_dStage_ZSTDds_skipFrame
ZSTD_dStreamStage_zdss_flush
ZSTD_dStreamStage_zdss_init
ZSTD_dStreamStage_zdss_load
ZSTD_dStreamStage_zdss_loadHeader
ZSTD_dStreamStage_zdss_read
ZSTD_dictAttachPref_e_ZSTD_dictDefaultAttach
ZSTD_dictAttachPref_e_ZSTD_dictForceAttach
ZSTD_dictAttachPref_e_ZSTD_dictForceCopy
ZSTD_dictAttachPref_e_ZSTD_dictForceLoad
ZSTD_dictContentType_e_ZSTD_dct_auto
ZSTD_dictContentType_e_ZSTD_dct_fullDict
ZSTD_dictContentType_e_ZSTD_dct_rawContent
ZSTD_dictLoadMethod_e_ZSTD_dlm_byCopy
< Copy dictionary content internally
ZSTD_dictLoadMethod_e_ZSTD_dlm_byRef
< Reference dictionary content – the dictionary buffer must outlive its users.
ZSTD_dictUses_e_ZSTD_dont_use
ZSTD_dictUses_e_ZSTD_use_indefinitely
ZSTD_dictUses_e_ZSTD_use_once
ZSTD_forceIgnoreChecksum_e_ZSTD_d_ignoreChecksum
ZSTD_forceIgnoreChecksum_e_ZSTD_d_validateChecksum
ZSTD_format_e_ZSTD_f_zstd1
ZSTD_format_e_ZSTD_f_zstd1_magicless
ZSTD_frameType_e_ZSTD_frame
ZSTD_frameType_e_ZSTD_skippableFrame
ZSTD_litLocation_e_ZSTD_in_dst
ZSTD_litLocation_e_ZSTD_not_in_dst
ZSTD_litLocation_e_ZSTD_split
ZSTD_literalCompressionMode_e_ZSTD_lcm_auto
< Automatically determine the compression mode based on the compression level. Negative compression levels will be uncompressed, and positive compression levels will be compressed.
ZSTD_literalCompressionMode_e_ZSTD_lcm_huffman
< Always attempt Huffman compression. Uncompressed literals will still be emitted if Huffman compression is not profitable.
ZSTD_literalCompressionMode_e_ZSTD_lcm_uncompressed
< Always emit uncompressed literals.
ZSTD_longLengthType_e_ZSTD_llt_literalLength
ZSTD_longLengthType_e_ZSTD_llt_matchLength
ZSTD_longLengthType_e_ZSTD_llt_none
ZSTD_longOffset_e_ZSTD_lo_isLongOffset
ZSTD_longOffset_e_ZSTD_lo_isRegularOffset
ZSTD_nextInputType_e_ZSTDnit_block
ZSTD_nextInputType_e_ZSTDnit_blockHeader
ZSTD_nextInputType_e_ZSTDnit_checksum
ZSTD_nextInputType_e_ZSTDnit_frameHeader
ZSTD_nextInputType_e_ZSTDnit_lastBlock
ZSTD_nextInputType_e_ZSTDnit_skippableFrame
ZSTD_overlap_e_ZSTD_no_overlap
ZSTD_overlap_e_ZSTD_overlap_src_before_dst
ZSTD_paramSwitch_e_ZSTD_ps_auto
ZSTD_paramSwitch_e_ZSTD_ps_disable
ZSTD_paramSwitch_e_ZSTD_ps_enable
ZSTD_refMultipleDDicts_e_ZSTD_rmd_refMultipleDDicts
ZSTD_refMultipleDDicts_e_ZSTD_rmd_refSingleDDict
ZSTD_sequenceFormat_e_ZSTD_sf_explicitBlockDelimiters
ZSTD_sequenceFormat_e_ZSTD_sf_noBlockDelimiters
ZSTD_strategy_ZSTD_btlazy2
ZSTD_strategy_ZSTD_btopt
ZSTD_strategy_ZSTD_btultra
ZSTD_strategy_ZSTD_btultra2
ZSTD_strategy_ZSTD_dfast
ZSTD_strategy_ZSTD_fast
ZSTD_strategy_ZSTD_greedy
ZSTD_strategy_ZSTD_lazy
ZSTD_strategy_ZSTD_lazy2
_ALLOCA_H
_ASSERT_H
_ATFILE_SOURCE
_BITS_BYTESWAP_H
_BITS_ENDIANNESS_H
_BITS_ENDIAN_H
_BITS_POSIX1_LIM_H
_BITS_POSIX2_LIM_H
_BITS_PTHREADTYPES_ARCH_H
_BITS_PTHREADTYPES_COMMON_H
_BITS_STDINT_INTN_H
_BITS_STDINT_LEAST_H
_BITS_STDINT_UINTN_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_TYPES_LOCALE_T_H
_BITS_TYPES___LOCALE_T_H
_BITS_UINTN_IDENTITY_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_ENDIAN_H
_FEATURES_H
_LIBC_LIMITS_H_
_MM_DENORMALS_ZERO_MASK
_MM_DENORMALS_ZERO_OFF
_MM_DENORMALS_ZERO_ON
_MM_EXCEPT_DENORM
_MM_EXCEPT_DIV_ZERO
_MM_EXCEPT_INEXACT
_MM_EXCEPT_INVALID
_MM_EXCEPT_MASK
_MM_EXCEPT_OVERFLOW
_MM_EXCEPT_UNDERFLOW
_MM_FLUSH_ZERO_MASK
_MM_FLUSH_ZERO_OFF
_MM_FLUSH_ZERO_ON
_MM_HINT_ET0
_MM_HINT_ET1
_MM_HINT_NTA
_MM_HINT_T0
_MM_HINT_T1
_MM_HINT_T2
_MM_MASK_DENORM
_MM_MASK_DIV_ZERO
_MM_MASK_INEXACT
_MM_MASK_INVALID
_MM_MASK_MASK
_MM_MASK_OVERFLOW
_MM_MASK_UNDERFLOW
_MM_ROUND_DOWN
_MM_ROUND_MASK
_MM_ROUND_NEAREST
_MM_ROUND_TOWARD_ZERO
_MM_ROUND_UP
_POSIX2_BC_BASE_MAX
_POSIX2_BC_DIM_MAX
_POSIX2_BC_SCALE_MAX
_POSIX2_BC_STRING_MAX
_POSIX2_CHARCLASS_NAME_MAX
_POSIX2_COLL_WEIGHTS_MAX
_POSIX2_EXPR_NEST_MAX
_POSIX2_LINE_MAX
_POSIX2_RE_DUP_MAX
_POSIX_AIO_LISTIO_MAX
_POSIX_AIO_MAX
_POSIX_ARG_MAX
_POSIX_CHILD_MAX
_POSIX_CLOCKRES_MIN
_POSIX_C_SOURCE
_POSIX_DELAYTIMER_MAX
_POSIX_HOST_NAME_MAX
_POSIX_LINK_MAX
_POSIX_LOGIN_NAME_MAX
_POSIX_MAX_CANON
_POSIX_MAX_INPUT
_POSIX_MQ_OPEN_MAX
_POSIX_MQ_PRIO_MAX
_POSIX_NAME_MAX
_POSIX_NGROUPS_MAX
_POSIX_OPEN_MAX
_POSIX_PATH_MAX
_POSIX_PIPE_BUF
_POSIX_RE_DUP_MAX
_POSIX_RTSIG_MAX
_POSIX_SEM_NSEMS_MAX
_POSIX_SEM_VALUE_MAX
_POSIX_SIGQUEUE_MAX
_POSIX_SOURCE
_POSIX_SSIZE_MAX
_POSIX_STREAM_MAX
_POSIX_SYMLINK_MAX
_POSIX_SYMLOOP_MAX
_POSIX_THREAD_DESTRUCTOR_ITERATIONS
_POSIX_THREAD_KEYS_MAX
_POSIX_THREAD_THREADS_MAX
_POSIX_TIMER_MAX
_POSIX_TTY_NAME_MAX
_POSIX_TZNAME_MAX
_STDC_PREDEF_H
_STDINT_H
_STDLIB_H
_STRINGS_H
_STRING_H
_STRUCT_TIMESPEC
_SYS_CDEFS_H
_SYS_SELECT_H
_SYS_TYPES_H
_THREAD_MUTEX_INTERNAL_H
_THREAD_SHARED_TYPES_H
__BIG_ENDIAN
__BIT_TYPES_DEFINED__
__BYTE_ORDER
__FD_SETSIZE
__FLOAT_WORD_ORDER
__GLIBC_MINOR__
__GLIBC_USE_C2X_STRTOL
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_BFP_EXT_C2X
__GLIBC_USE_IEC_60559_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_ISOC2X
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_DISTINCT_FLOAT16
__HAVE_DISTINCT_FLOAT32
__HAVE_DISTINCT_FLOAT64
__HAVE_DISTINCT_FLOAT32X
__HAVE_DISTINCT_FLOAT64X
__HAVE_DISTINCT_FLOAT128
__HAVE_DISTINCT_FLOAT128X
__HAVE_FLOAT16
__HAVE_FLOAT32
__HAVE_FLOAT64
__HAVE_FLOAT32X
__HAVE_FLOAT64X
__HAVE_FLOAT64X_LONG_DOUBLE
__HAVE_FLOAT128
__HAVE_FLOAT128X
__HAVE_FLOATN_NOT_TYPEDEF
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64
__LDOUBLE_REDIRECTS_TO_FLOAT128_ABI
__LITTLE_ENDIAN
__OFF_T_MATCHES_OFF64_T
__PDP_ENDIAN
__PTHREAD_MUTEX_HAVE_PREV
__RLIM_T_MATCHES_RLIM64_T
__SIZEOF_PTHREAD_ATTR_T
__SIZEOF_PTHREAD_BARRIERATTR_T
__SIZEOF_PTHREAD_BARRIER_T
__SIZEOF_PTHREAD_CONDATTR_T
__SIZEOF_PTHREAD_COND_T
__SIZEOF_PTHREAD_MUTEXATTR_T
__SIZEOF_PTHREAD_MUTEX_T
__SIZEOF_PTHREAD_RWLOCKATTR_T
__SIZEOF_PTHREAD_RWLOCK_T
__STATFS_MATCHES_STATFS64
__STDC_IEC_559_COMPLEX__
__STDC_IEC_559__
__STDC_IEC_60559_BFP__
__STDC_IEC_60559_COMPLEX__
__STDC_ISO_10646__
__SYSCALL_WORDSIZE
__TIMESIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WALL
__WCLONE
__WCOREFLAG
__WNOTHREAD
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
__W_CONTINUED
__clock_t_defined
__clockid_t_defined
__glibc_c99_flexarr_available
__have_pthread_attr_t
__ldiv_t_defined
__lldiv_t_defined
__sigset_t_defined
__time_t_defined
__timer_t_defined
__timeval_defined
blockType_e_bt_compressed
blockType_e_bt_raw
blockType_e_bt_reserved
blockType_e_bt_rle
g_debuglevel
ended inlining debug.h
streaming_operation_is_streaming
streaming_operation_not_streaming
symbolEncodingType_e_set_basic
symbolEncodingType_e_set_compressed
symbolEncodingType_e_set_repeat
symbolEncodingType_e_set_rle

Statics§

BIT_mask
LL_base
skipping file: ../common/mem.h / / skipping file: ../common/zstd_internal.h
LL_bits
LL_defaultDTable
LL_defaultNorm
ML_base
ML_bits
ML_defaultDTable
ML_defaultNorm
OF_base
OF_bits
OF_defaultDTable
OF_defaultNorm
ZSTD_defaultCMem
< this constant defers to stdlib’s functions
ZSTD_did_fieldSize
ZSTD_fcs_fieldSize
algoTime
repStartValue

Functions§

ERR_getErrorString
skipping file: error_private.h
FSE_NCountWriteBound
FSE_NCountWriteBound(): Provides the maximum possible size of an FSE normalized table, given ‘maxSymbolValue’ and ‘tableLog’. Typically useful for allocation purpose.
FSE_buildCTable
FSE_buildCTable(): Builds ct, which must be already allocated, using FSE_createCTable(). @return : 0, or an errorCode, which can be tested using FSE_isError()
FSE_buildCTable_rle
FSE_buildCTable_wksp
FSE_buildDTable_wksp
FSE_compressBound
FSE_compress_usingCTable
FSE_compress_usingCTable(): Compress src using ct into dst which must be already allocated. @return : size of compressed data (<= dstCapacity), or 0 if compressed data could not fit into dst, or an errorCode, which can be tested using FSE_isError()
FSE_decompress_wksp_bmi2
FSE_getErrorName
FSE_isError
FSE_normalizeCount
FSE_normalizeCount(): normalize counts so that sum(count[]) == Power_of_2 (2^tableLog) ‘normalizedCounter’ is a table of short, of minimum size (maxSymbolValue+1). useLowProbCount is a boolean parameter which trades off compressed size for faster header decoding. When it is set to 1, the compressed data will be slightly smaller. And when it is set to 0, FSE_readNCount() and FSE_buildDTable() will be faster. If you are compressing a small amount of data (< 2 KB) then useLowProbCount=0 is a good default, since header deserialization makes a big speed difference. Otherwise, useLowProbCount=1 is a good default, since the speed difference is small. @return : tableLog, or an errorCode, which can be tested using FSE_isError()
FSE_optimalTableLog
FSE_optimalTableLog(): dynamically downsize ‘tableLog’ when conditions are met. It saves CPU time, by using smaller tables, while preserving or even improving compression ratio. @return : recommended tableLog (necessarily <= ‘maxTableLog’)
FSE_optimalTableLog_internal
FSE_readNCount
FSE_readNCount(): Read compactly saved ‘normalizedCounter’ from ‘rBuffer’. @return : size read from ‘rBuffer’, or an errorCode, which can be tested using FSE_isError(). maxSymbolValuePtr[0] and tableLogPtr[0] will also be updated with their respective values
FSE_readNCount_bmi2
FSE_readNCount_bmi2(): Same as FSE_readNCount() but pass bmi2=1 when your CPU supports BMI2 and 0 otherwise.
FSE_versionNumber
ended inlining huf.h / / skipping file: bits.h
FSE_writeNCount
FSE_writeNCount(): Compactly save ‘normalizedCounter’ into ‘buffer’. @return : size of the compressed table, or an errorCode, which can be tested using FSE_isError().
HUF_buildCTable_wksp
HUF_cardinality
HUF_compress1X_repeat
HUF_compress1X_repeat() : Same as HUF_compress1X_wksp(), but considers using hufTable if *repeat != HUF_repeat_none. If it uses hufTable it does not modify hufTable or repeat. If it doesn’t, it sets *repeat = HUF_repeat_none, and it sets hufTable to the table used. If preferRepeat then the old table will always be used if valid. If suspectUncompressible then some sampling checks will be run to potentially skip huffman coding
HUF_compress1X_usingCTable
HUF_compress4X_repeat
HUF_compress4X_repeat() : Same as HUF_compress4X_wksp(), but considers using hufTable if *repeat != HUF_repeat_none. If it uses hufTable it does not modify hufTable or repeat. If it doesn’t, it sets *repeat = HUF_repeat_none, and it sets hufTable to the table used. If preferRepeat then the old table will always be used if valid. If suspectUncompressible then some sampling checks will be run to potentially skip huffman coding
HUF_compress4X_usingCTable
HUF_compressBound
HUF_decompress1X1_DCtx_wksp
HUF_decompress1X2_DCtx_wksp
HUF_decompress1X_DCtx_wksp
HUF_decompress1X_usingDTable
HUF_decompress4X_hufOnly_wksp
HUF_decompress4X_usingDTable
HUF_estimateCompressedSize
HUF_getErrorName
HUF_getNbBitsFromCTable
HUF_getNbBitsFromCTable() : Read nbBits from CTable symbolTable, for symbol symbolValue presumed <= HUF_SYMBOLVALUE_MAX Note 1 : is not inlined, as HUF_CElt definition is private
HUF_isError
HUF_minTableLog
HUF_compress() does the following:
HUF_optimalTableLog
HUF_readCTable
HUF_readCTable() : Loading a CTable saved with HUF_writeCTable()
HUF_readDTableX1_wksp
HUF_readDTableX2_wksp
HUF_readStats
HUF_readStats() : Read compact Huffman tree, saved by HUF_writeCTable(). huffWeight is destination buffer. @return : size read from src , or an error Code . Note : Needed by HUF_readCTable() and HUF_readDTableXn() .
HUF_readStats_wksp
HUF_selectDecoder
HUF_selectDecoder() : Tells which decoder is likely to decode faster, based on a set of pre-computed metrics. @return : 0==HUF_decompress4X1, 1==HUF_decompress4X2 . Assumption : 0 < dstSize <= 128 KB
HUF_validateCTable
HUF_writeCTable_wksp
ZSTD_CCtxParams_getParameter
ZSTD_CCtxParams_getParameter() : Similar to ZSTD_CCtx_getParameter. Get the requested value of one compression parameter, selected by enum ZSTD_cParameter. @result : 0, or an error code (which can be tested with ZSTD_isError()).
ZSTD_CCtxParams_init
ZSTD_CCtxParams_init() : Initializes the compression parameters of cctxParams according to compression level. All other parameters are reset to their default values.
ZSTD_CCtxParams_init_advanced
ZSTD_CCtxParams_init_advanced() : Initializes the compression and frame parameters of cctxParams according to params. All other parameters are reset to their default values.
ZSTD_CCtxParams_reset
ZSTD_CCtxParams_reset() : Reset params to default values.
ZSTD_CCtxParams_setParameter
ZSTD_CCtxParams_setParameter() : Requires v1.4.0+ Similar to ZSTD_CCtx_setParameter. Set one compression parameter, selected by enum ZSTD_cParameter. Parameters must be applied to a ZSTD_CCtx using ZSTD_CCtx_setParametersUsingCCtxParams(). @result : a code representing success or failure (which can be tested with ZSTD_isError()).
ZSTD_CCtx_getParameter
ZSTD_CCtx_getParameter() : Get the requested compression parameter value, selected by enum ZSTD_cParameter, and store it into int* value. @return : 0, or an error code (which can be tested with ZSTD_isError()).
ZSTD_CCtx_loadDictionary
ZSTD_CCtx_loadDictionary() : Requires v1.4.0+ Create an internal CDict from dict buffer. Decompression will have to use same dictionary. @result : 0, or an error code (which can be tested with ZSTD_isError()). Special: Loading a NULL (or 0-size) dictionary invalidates previous dictionary, meaning “return to no-dictionary mode”. Note 1 : Dictionary is sticky, it will be used for all future compressed frames, until parameters are reset, a new dictionary is loaded, or the dictionary is explicitly invalidated by loading a NULL dictionary. Note 2 : Loading a dictionary involves building tables. It’s also a CPU consuming operation, with non-negligible impact on latency. Tables are dependent on compression parameters, and for this reason, compression parameters can no longer be changed after loading a dictionary. Note 3 :dict content will be copied internally. Use experimental ZSTD_CCtx_loadDictionary_byReference() to reference content instead. In such a case, dictionary buffer must outlive its users. Note 4 : Use ZSTD_CCtx_loadDictionary_advanced() to precisely select how dictionary content must be interpreted. Note 5 : This method does not benefit from LDM (long distance mode). If you want to employ LDM on some large dictionary content, prefer employing ZSTD_CCtx_refPrefix() described below.
ZSTD_CCtx_loadDictionary_advanced
ZSTD_CCtx_loadDictionary_advanced() : Same as ZSTD_CCtx_loadDictionary(), but gives finer control over how to load the dictionary (by copy ? by reference ?) and how to interpret it (automatic ? force raw mode ? full mode only ?)
ZSTD_CCtx_loadDictionary_byReference
ZSTD_CCtx_loadDictionary_byReference() : Same as ZSTD_CCtx_loadDictionary(), but dictionary content is referenced, instead of being copied into CCtx. It saves some memory, but also requires that dict outlives its usage within cctx
ZSTD_CCtx_refCDict
ZSTD_CCtx_refCDict() : Requires v1.4.0+ Reference a prepared dictionary, to be used for all future compressed frames. Note that compression parameters are enforced from within CDict, and supersede any compression parameter previously set within CCtx. The parameters ignored are labelled as “superseded-by-cdict” in the ZSTD_cParameter enum docs. The ignored parameters will be used again if the CCtx is returned to no-dictionary mode. The dictionary will remain valid for future compressed frames using same CCtx. @result : 0, or an error code (which can be tested with ZSTD_isError()). Special : Referencing a NULL CDict means “return to no-dictionary mode”. Note 1 : Currently, only one dictionary can be managed. Referencing a new dictionary effectively “discards” any previous one. Note 2 : CDict is just referenced, its lifetime must outlive its usage within CCtx.
ZSTD_CCtx_refPrefix
ZSTD_CCtx_refPrefix() : Requires v1.4.0+ Reference a prefix (single-usage dictionary) for next compressed frame. A prefix is only used once. Tables are discarded at end of frame (ZSTD_e_end). Decompression will need same prefix to properly regenerate data. Compressing with a prefix is similar in outcome as performing a diff and compressing it, but performs much faster, especially during decompression (compression speed is tunable with compression level). This method is compatible with LDM (long distance mode). @result : 0, or an error code (which can be tested with ZSTD_isError()). Special: Adding any prefix (including NULL) invalidates any previous prefix or dictionary Note 1 : Prefix buffer is referenced. It must outlive compression. Its content must remain unmodified during compression. Note 2 : If the intention is to diff some large src data blob with some prior version of itself, ensure that the window size is large enough to contain the entire source. See ZSTD_c_windowLog. Note 3 : Referencing a prefix involves building tables, which are dependent on compression parameters. It’s a CPU consuming operation, with non-negligible impact on latency. If there is a need to use the same prefix multiple times, consider loadDictionary instead. Note 4 : By default, the prefix is interpreted as raw content (ZSTD_dct_rawContent). Use experimental ZSTD_CCtx_refPrefix_advanced() to alter dictionary interpretation.
ZSTD_CCtx_refPrefix_advanced
ZSTD_CCtx_refPrefix_advanced() : Same as ZSTD_CCtx_refPrefix(), but gives finer control over how to interpret prefix content (automatic ? force raw mode (default) ? full mode only ?)
ZSTD_CCtx_refThreadPool
ZSTD_CCtx_reset
ZSTD_CCtx_reset() : There are 2 different things that can be reset, independently or jointly :
ZSTD_CCtx_setCParams
ZSTD_CCtx_setCParams() : Set all parameters provided within @p cparams into the working @p cctx. Note : if modifying parameters during compression (MT mode only), note that changes to the .windowLog parameter will be ignored. @return 0 on success, or an error code (can be checked with ZSTD_isError()). On failure, no parameters are updated.
ZSTD_CCtx_setFParams
ZSTD_CCtx_setFParams() : Set all parameters provided within @p fparams into the working @p cctx. @return 0 on success, or an error code (can be checked with ZSTD_isError()).
ZSTD_CCtx_setParameter
ZSTD_CCtx_setParameter() : Set one compression parameter, selected by enum ZSTD_cParameter. All parameters have valid bounds. Bounds can be queried using ZSTD_cParam_getBounds(). Providing a value beyond bound will either clamp it, or trigger an error (depending on parameter). Setting a parameter is generally only possible during frame initialization (before starting compression). Exception : when using multi-threading mode (nbWorkers >= 1), the following parameters can be updated during compression (within same frame): => compressionLevel, hashLog, chainLog, searchLog, minMatch, targetLength and strategy. new parameters will be active for next job only (after a flush()). @return : an error code (which can be tested using ZSTD_isError()).
ZSTD_CCtx_setParametersUsingCCtxParams
ZSTD_CCtx_setParametersUsingCCtxParams() : Apply a set of ZSTD_CCtx_params to the compression context. This can be done even after compression is started, if nbWorkers==0, this will have no impact until a new compression is started. if nbWorkers>=1, new parameters will be picked up at next job, with a few restrictions (windowLog, pledgedSrcSize, nbWorkers, jobSize, and overlapLog are not updated).
ZSTD_CCtx_setParams
ZSTD_CCtx_setParams() : Set all parameters provided within @p params into the working @p cctx. @return 0 on success, or an error code (can be checked with ZSTD_isError()).
ZSTD_CCtx_setPledgedSrcSize
ZSTD_CCtx_setPledgedSrcSize() : Total input data size to be compressed as a single frame. Value will be written in frame header, unless if explicitly forbidden using ZSTD_c_contentSizeFlag. This value will also be controlled at end of frame, and trigger an error if not respected. @result : 0, or an error code (which can be tested with ZSTD_isError()). Note 1 : pledgedSrcSize==0 actually means zero, aka an empty frame. In order to mean “unknown content size”, pass constant ZSTD_CONTENTSIZE_UNKNOWN. ZSTD_CONTENTSIZE_UNKNOWN is default value for any new frame. Note 2 : pledgedSrcSize is only valid once, for the next frame. It’s discarded at the end of the frame, and replaced by ZSTD_CONTENTSIZE_UNKNOWN. Note 3 : Whenever all input data is provided and consumed in a single round, for example with ZSTD_compress2(), or invoking immediately ZSTD_compressStream2(,,,ZSTD_e_end), this value is automatically overridden by srcSize instead.
ZSTD_CStreamInSize
ZSTD_CStreamOutSize
ZSTD_DCtx_getParameter
ZSTD_DCtx_getParameter() : Get the requested decompression parameter value, selected by enum ZSTD_dParameter, and store it into int* value. @return : 0, or an error code (which can be tested with ZSTD_isError()).
ZSTD_DCtx_loadDictionary
ZSTD_DCtx_loadDictionary() : Requires v1.4.0+ Create an internal DDict from dict buffer, to be used to decompress all future frames. The dictionary remains valid for all future frames, until explicitly invalidated, or a new dictionary is loaded. @result : 0, or an error code (which can be tested with ZSTD_isError()). Special : Adding a NULL (or 0-size) dictionary invalidates any previous dictionary, meaning “return to no-dictionary mode”. Note 1 : Loading a dictionary involves building tables, which has a non-negligible impact on CPU usage and latency. It’s recommended to “load once, use many times”, to amortize the cost Note 2 :dict content will be copied internally, so dict can be released after loading. Use ZSTD_DCtx_loadDictionary_byReference() to reference dictionary content instead. Note 3 : Use ZSTD_DCtx_loadDictionary_advanced() to take control of how dictionary content is loaded and interpreted.
ZSTD_DCtx_loadDictionary_advanced
ZSTD_DCtx_loadDictionary_advanced() : Same as ZSTD_DCtx_loadDictionary(), but gives direct control over how to load the dictionary (by copy ? by reference ?) and how to interpret it (automatic ? force raw mode ? full mode only ?).
ZSTD_DCtx_loadDictionary_byReference
ZSTD_DCtx_loadDictionary_byReference() : Same as ZSTD_DCtx_loadDictionary(), but references dict content instead of copying it into dctx. This saves memory if dict remains around., However, it’s imperative that dict remains accessible (and unmodified) while being used, so it must outlive decompression.
ZSTD_DCtx_refDDict
ZSTD_DCtx_refDDict() : Requires v1.4.0+ Reference a prepared dictionary, to be used to decompress next frames. The dictionary remains active for decompression of future frames using same DCtx.
ZSTD_DCtx_refPrefix
ZSTD_DCtx_refPrefix() : Requires v1.4.0+ Reference a prefix (single-usage dictionary) to decompress next frame. This is the reverse operation of ZSTD_CCtx_refPrefix(), and must use the same prefix as the one used during compression. Prefix is only used once. Reference is discarded at end of frame. End of frame is reached when ZSTD_decompressStream() returns 0. @result : 0, or an error code (which can be tested with ZSTD_isError()). Note 1 : Adding any prefix (including NULL) invalidates any previously set prefix or dictionary Note 2 : Prefix buffer is referenced. It must outlive decompression. Prefix buffer must remain unmodified up to the end of frame, reached when ZSTD_decompressStream() returns 0. Note 3 : By default, the prefix is treated as raw content (ZSTD_dct_rawContent). Use ZSTD_CCtx_refPrefix_advanced() to alter dictMode (Experimental section) Note 4 : Referencing a raw content prefix has almost no cpu nor memory cost. A full dictionary is more costly, as it requires building tables.
ZSTD_DCtx_refPrefix_advanced
ZSTD_DCtx_refPrefix_advanced() : Same as ZSTD_DCtx_refPrefix(), but gives finer control over how to interpret prefix content (automatic ? force raw mode (default) ? full mode only ?)
ZSTD_DCtx_reset
ZSTD_DCtx_reset() : Return a DCtx to clean state. Session and parameters can be reset jointly or separately. Parameters can only be reset when no active frame is being decompressed. @return : 0, or an error code, which can be tested with ZSTD_isError()
ZSTD_DCtx_setFormat
ZSTD_DCtx_setFormat() : This function is REDUNDANT. Prefer ZSTD_DCtx_setParameter(). Instruct the decoder context about what kind of data to decode next. This instruction is mandatory to decode data without a fully-formed header, such ZSTD_f_zstd1_magicless for example. @return : 0, or an error code (which can be tested using ZSTD_isError()).
ZSTD_DCtx_setMaxWindowSize
ZSTD_DCtx_setMaxWindowSize() : Refuses allocating internal buffers for frames requiring a window size larger than provided limit. This protects a decoder context from reserving too much memory for itself (potential attack scenario). This parameter is only useful in streaming mode, since no internal buffer is allocated in single-pass mode. By default, a decompression context accepts all window sizes <= (1 << ZSTD_WINDOWLOG_LIMIT_DEFAULT) @return : 0, or an error code (which can be tested using ZSTD_isError()).
ZSTD_DCtx_setParameter
ZSTD_DCtx_setParameter() : Set one compression parameter, selected by enum ZSTD_dParameter. All parameters have valid bounds. Bounds can be queried using ZSTD_dParam_getBounds(). Providing a value beyond bound will either clamp it, or trigger an error (depending on parameter). Setting a parameter is only possible during frame initialization (before starting decompression). @return : 0, or an error code (which can be tested using ZSTD_isError()).
ZSTD_DDict_dictContent
skipping file: ../common/zstd_deps.h / / skipping file: ../zstd.h
ZSTD_DDict_dictSize
ZSTD_DStreamInSize
ZSTD_DStreamOutSize
ZSTD_adjustCParams
ZSTD_adjustCParams() : optimize params for a given srcSize and dictSize. srcSize can be unknown, in which case use ZSTD_CONTENTSIZE_UNKNOWN. dictSize must be 0 when there is no dictionary. cPar can be invalid : all parameters will be clamped within valid range in the @return struct. This function never fails (wide contract)
ZSTD_buildFSETable
ZSTD_cParam_getBounds
ZSTD_cParam_getBounds() : All parameters must belong to an interval with lower and upper bounds, otherwise they will either trigger an error or be automatically clamped. @return : a structure, ZSTD_bounds, which contains - an error status field, which must be tested using ZSTD_isError() - lower and upper bounds, both inclusive
ZSTD_checkCParams
ZSTD_checkCParams() : Ensure param values remain within authorized range. @return 0 on success, or an error code (can be checked with ZSTD_isError())
ZSTD_checkContinuity
ZSTD_checkContinuity() : check if next dst follows previous position, where decompression ended. If yes, do nothing (continue on current segment). If not, classify previous segment as “external dictionary”, and start a new segment. This function cannot fail.
ZSTD_compress
Simple API / /*! ZSTD_compress() : Compresses src content as a single zstd compressed frame into already allocated dst. NOTE: Providing dstCapacity >= ZSTD_compressBound(srcSize) guarantees that zstd will have enough space to successfully compress the data. @return : compressed size written into dst (<= `dstCapacity), or an error code if it fails (which can be tested using ZSTD_isError()).
ZSTD_compress2
ZSTD_compress2() : Behave the same as ZSTD_compressCCtx(), but compression parameters are set using the advanced API. ZSTD_compress2() always starts a new frame. Should cctx hold data from a previously unfinished frame, everything about it is forgotten.
ZSTD_compressBegin
Buffer-less streaming compression (synchronous mode)
ZSTD_compressBegin_advanced
ZSTD_compressBegin_usingCDict
ZSTD_compressBegin_usingCDict_advanced
ZSTD_compressBegin_usingDict
ZSTD_compressBlock
ZSTD_compressBound
ZSTD_compressCCtx
ZSTD_compressCCtx() : Same as ZSTD_compress(), using an explicit ZSTD_CCtx. Important : in order to behave similarly to ZSTD_compress(), this function compresses at requested compression level, ignoring any other parameter . If any advanced parameter was set using the advanced API, they will all be reset. Only compressionLevel remains.
ZSTD_compressContinue
ZSTD_compressEnd
ZSTD_compressSequences
ZSTD_compressSequences() : Compress an array of ZSTD_Sequence, associated with @src buffer, into dst. @src contains the entire input (not just the literals). If @srcSize > sum(sequence.length), the remaining bytes are considered all literals If a dictionary is included, then the cctx should reference the dict. (see: ZSTD_CCtx_refCDict(), ZSTD_CCtx_loadDictionary(), etc.) The entire source is compressed into a single frame.
ZSTD_compressStream
Alternative for ZSTD_compressStream2(zcs, output, input, ZSTD_e_continue). NOTE: The return value is different. ZSTD_compressStream() returns a hint for the next read size (if non-zero and not an error). ZSTD_compressStream2() returns the minimum nb of bytes left to flush (if non-zero and not an error).
ZSTD_compressStream2
ZSTD_compressStream2() : Requires v1.4.0+ Behaves about the same as ZSTD_compressStream, with additional control on end directive.
ZSTD_compressStream2_simpleArgs
ZSTD_compressStream2_simpleArgs() : Same as ZSTD_compressStream2(), but using only integral types as arguments. This variant might be helpful for binders from dynamic languages which have troubles handling structures containing memory pointers.
ZSTD_compress_advanced
ZSTD_compress_advanced() : Note : this function is now DEPRECATED. It can be replaced by ZSTD_compress2(), in combination with ZSTD_CCtx_setParameter() and other parameter setters. This prototype will generate compilation warnings.
ZSTD_compress_usingCDict
ZSTD_compress_usingCDict() : Compression using a digested Dictionary. Recommended when same dictionary is used multiple times. Note : compression level is decided at dictionary creation time, and frame parameters are hardcoded (dictID=yes, contentSize=yes, checksum=no)
ZSTD_compress_usingCDict_advanced
ZSTD_compress_usingCDict_advanced() : Note : this function is now DEPRECATED. It can be replaced by ZSTD_compress2(), in combination with ZSTD_CCtx_loadDictionary() and other parameter setters. This prototype will generate compilation warnings.
ZSTD_compress_usingDict
Simple dictionary API / /*! ZSTD_compress_usingDict() : Compression at an explicit compression level using a Dictionary. A dictionary can be any arbitrary data segment (also called a prefix), or a buffer with specified information (see zdict.h). Note : This function loads the dictionary, resulting in significant startup delay. It’s intended for a dictionary used only once. Note 2 : When dict == NULL || dictSize < 8 no dictionary is used.
ZSTD_copyCCtx
ZSTD_copyDCtx
ZSTD_copyDDictParameters
ZSTD_createCCtx
ZSTD_createCCtxParams
ZSTD_CCtx_params : Quick howto :
ZSTD_createCCtx_advanced
ZSTD_createCDict
ZSTD_createCDict() : When compressing multiple messages or blocks using the same dictionary, it’s recommended to digest the dictionary only once, since it’s a costly operation. ZSTD_createCDict() will create a state from digesting a dictionary. The resulting state can be used for future compression operations with very limited startup cost. ZSTD_CDict can be created once and shared by multiple threads concurrently, since its usage is read-only. @dictBuffer can be released after ZSTD_CDict creation, because its content is copied within CDict. Note 1 : Consider experimental function ZSTD_createCDict_byReference() if you prefer to not duplicate @dictBuffer content. Note 2 : A ZSTD_CDict can be created from an empty @dictBuffer, in which case the only thing that it transports is the @compressionLevel. This can be useful in a pipeline featuring ZSTD_compress_usingCDict() exclusively, expecting a ZSTD_CDict parameter with any data, including those without a known dictionary.
ZSTD_createCDict_advanced
ZSTD_createCDict_advanced2
ZSTD_createCDict_byReference
ZSTD_createCDict_byReference() : Create a digested dictionary for compression Dictionary content is just referenced, not duplicated. As a consequence, dictBuffer must outlive CDict, and its content must remain unmodified throughout the lifetime of CDict. note: equivalent to ZSTD_createCDict_advanced(), with dictLoadMethod==ZSTD_dlm_byRef
ZSTD_createCStream
ZSTD_createCStream_advanced
ZSTD_createDCtx
ZSTD_createDCtx_advanced
ZSTD_createDDict
ZSTD_createDDict() : Create a digested dictionary, ready to start decompression operation without startup delay. dictBuffer can be released after DDict creation, as its content is copied inside DDict.
ZSTD_createDDict_advanced
ZSTD_createDDict_byReference
ZSTD_createDDict_byReference() : Create a digested dictionary, ready to start decompression operation without startup delay. Dictionary content is referenced, and therefore stays in dictBuffer. It is important that dictBuffer outlives DDict, it must remain read accessible throughout the lifetime of DDict
ZSTD_createDStream
ZSTD_createDStream_advanced
ZSTD_createThreadPool
ZSTD_dParam_getBounds
ZSTD_dParam_getBounds() : All parameters must belong to an interval with lower and upper bounds, otherwise they will either trigger an error or be automatically clamped. @return : a structure, ZSTD_bounds, which contains - an error status field, which must be tested using ZSTD_isError() - both lower and upper bounds, inclusive
ZSTD_decodeLiteralsBlock_wrapper
ZSTD_decodeSeqHeaders
ZSTD_decodeSeqHeaders() : decode sequence header from src
ZSTD_decodingBufferSize_min
Buffer-less streaming decompression (synchronous mode)
ZSTD_decompress
ZSTD_decompress() : compressedSize : must be the exact size of some number of compressed and/or skippable frames. dstCapacity is an upper bound of originalSize to regenerate. If user cannot imply a maximum upper bound, it’s better to use streaming mode to decompress data. @return : the number of bytes decompressed into dst (<= dstCapacity), or an errorCode if it fails (which can be tested using ZSTD_isError()).
ZSTD_decompressBegin
ZSTD_decompressBegin_usingDDict
ZSTD_decompressBegin_usingDict
ZSTD_decompressBlock
ZSTD_decompressBlock_deprecated
ZSTD_decompressBlock_internal
ZSTD_decompressBound
ZSTD_decompressBound() : src should point to the start of a series of ZSTD encoded and/or skippable frames srcSize must be the exact size of this series (i.e. there should be a frame boundary at src + srcSize) @return : - upper-bound for the decompressed size of all data in all successive frames - if an error occurred: ZSTD_CONTENTSIZE_ERROR
ZSTD_decompressContinue
ZSTD_decompressContinue() : srcSize : must be the exact nb of bytes expected (see ZSTD_nextSrcSizeToDecompress()) @return : nb of bytes generated into dst (necessarily <= `dstCapacity) or an error code, which can be tested using ZSTD_isError()
ZSTD_decompressDCtx
ZSTD_decompressDCtx() : Same as ZSTD_decompress(), requires an allocated ZSTD_DCtx. Compatible with sticky parameters.
ZSTD_decompressStream
ZSTD_decompressStream() : Streaming decompression function. Call repetitively to consume full input updating it as necessary. Function will update both input and output pos fields exposing current state via these fields:
ZSTD_decompressStream_simpleArgs
ZSTD_decompressStream_simpleArgs() : Same as ZSTD_decompressStream(), but using only integral types as arguments. This can be helpful for binders from dynamic languages which have troubles handling structures containing memory pointers.
ZSTD_decompress_usingDDict
ZSTD_decompress_usingDDict() : Decompression using a digested Dictionary. Recommended when same dictionary is used multiple times.
ZSTD_decompress_usingDict
ZSTD_decompress_usingDict() : Decompression using a known Dictionary. Dictionary must be identical to the one used during compression. Note : This function loads the dictionary, resulting in significant startup delay. It’s intended for a dictionary used only once. Note : When dict == NULL || dictSize < 8 no dictionary is used.
ZSTD_decompressionMargin
ZSTD_decompressionMargin() : Zstd supports in-place decompression, where the input and output buffers overlap. In this case, the output buffer must be at least (Margin + Output_Size) bytes large, and the input buffer must be at the end of the output buffer.
ZSTD_defaultCLevel
ZSTD_endStream
Equivalent to ZSTD_compressStream2(zcs, output, &emptyInput, ZSTD_e_end).
ZSTD_estimateCCtxSize
ZSTD_estimate*() : These functions make it possible to estimate memory usage of a future {D,C}Ctx, before its creation.
ZSTD_estimateCCtxSize_usingCCtxParams
ZSTD_estimateCCtxSize_usingCParams
ZSTD_estimateCDictSize
ZSTD_estimate?DictSize() : ZSTD_estimateCDictSize() will bet that src size is relatively “small”, and content is copied, like ZSTD_createCDict(). ZSTD_estimateCDictSize_advanced() makes it possible to control compression parameters precisely, like ZSTD_createCDict_advanced(). Note : dictionaries created by reference (ZSTD_dlm_byRef) are logically smaller.
ZSTD_estimateCDictSize_advanced
ZSTD_estimateCStreamSize
ZSTD_estimateCStreamSize() : ZSTD_estimateCStreamSize() will provide a budget large enough for any compression level up to selected one. It will also consider src size to be arbitrarily “large”, which is worst case. If srcSize is known to always be small, ZSTD_estimateCStreamSize_usingCParams() can provide a tighter estimation. ZSTD_estimateCStreamSize_usingCParams() can be used in tandem with ZSTD_getCParams() to create cParams from compressionLevel. ZSTD_estimateCStreamSize_usingCCtxParams() can be used in tandem with ZSTD_CCtxParams_setParameter(). Only single-threaded compression is supported. This function will return an error code if ZSTD_c_nbWorkers is >= 1. Note : CStream size estimation is only correct for single-threaded compression. ZSTD_DStream memory budget depends on window Size. This information can be passed manually, using ZSTD_estimateDStreamSize, or deducted from a valid frame Header, using ZSTD_estimateDStreamSize_fromFrame(); Note : if streaming is init with function ZSTD_init?Stream_usingDict(), an internal ?Dict will be created, which additional size is not estimated here. In this case, get total size by adding ZSTD_estimate?DictSize Note 2 : only single-threaded compression is supported. ZSTD_estimateCStreamSize_usingCCtxParams() will return an error code if ZSTD_c_nbWorkers is >= 1. Note 3 : ZSTD_estimateCStreamSize* functions are not compatible with the Block-Level Sequence Producer API at this time. Size estimates assume that no external sequence producer is registered.
ZSTD_estimateCStreamSize_usingCCtxParams
ZSTD_estimateCStreamSize_usingCParams
ZSTD_estimateDCtxSize
ZSTD_estimateDDictSize
ZSTD_estimateDDictSize() : Estimate amount of memory that will be needed to create a dictionary for decompression. Note : dictionary created by reference using ZSTD_dlm_byRef are smaller
ZSTD_estimateDStreamSize
ZSTD_estimateDStreamSize_fromFrame
ZSTD_findDecompressedSize
ZSTD_findDecompressedSize() : src should point to the start of a series of ZSTD encoded and/or skippable frames srcSize must be the exact size of this series (i.e. there should be a frame boundary at src + srcSize) @return : - decompressed size of all data in all successive frames - if the decompressed size cannot be determined: ZSTD_CONTENTSIZE_UNKNOWN - if an error occurred: ZSTD_CONTENTSIZE_ERROR
ZSTD_findFrameCompressedSize
ZSTD_findFrameCompressedSize() : Requires v1.4.0+ src should point to the start of a ZSTD frame or skippable frame. srcSize must be >= first frame size @return : the compressed size of the first frame starting at src, suitable to pass as srcSize to ZSTD_decompress or similar, or an error code if input is invalid
ZSTD_flushStream
Equivalent to ZSTD_compressStream2(zcs, output, &emptyInput, ZSTD_e_flush).
ZSTD_frameHeaderSize
ZSTD_frameHeaderSize() : srcSize must be >= ZSTD_FRAMEHEADERSIZE_PREFIX. @return : size of the Frame Header, or an error code (if srcSize is too small)
ZSTD_freeCCtx
ZSTD_freeCCtxParams
ZSTD_freeCDict
ZSTD_freeCDict() : Function frees memory allocated by ZSTD_createCDict(). If a NULL pointer is passed, no operation is performed.
ZSTD_freeCStream
ZSTD_freeDCtx
ZSTD_freeDDict
ZSTD_freeDDict() : Function frees memory allocated with ZSTD_createDDict() If a NULL pointer is passed, no operation is performed.
ZSTD_freeDStream
ZSTD_freeThreadPool
ZSTD_generateSequences
ZSTD_generateSequences() : Generate sequences using ZSTD_compress2(), given a source buffer.
ZSTD_getBlockSize
This API is deprecated in favor of the regular compression API. You can get the frame header down to 2 bytes by setting:
ZSTD_getCParams
ZSTD_getCParams() : @return ZSTD_compressionParameters structure for a selected compression level and estimated srcSize. estimatedSrcSize value is optional, select 0 if not known
ZSTD_getDecompressedSize
ZSTD_getDecompressedSize() : NOTE: This function is now obsolete, in favor of ZSTD_getFrameContentSize(). Both functions work the same way, but ZSTD_getDecompressedSize() blends “empty”, “unknown” and “error” results to the same return value (0), while ZSTD_getFrameContentSize() gives them separate return values. @return : decompressed size of src frame content if known and not empty, 0 otherwise.
ZSTD_getDictID_fromCDict
ZSTD_getDictID_fromCDict() : Requires v1.5.0+ Provides the dictID of the dictionary loaded into cdict. If @return == 0, the dictionary is not conformant to Zstandard specification, or empty. Non-conformant dictionaries can still be loaded, but as content-only dictionaries.
ZSTD_getDictID_fromDDict
ZSTD_getDictID_fromDDict() : Requires v1.4.0+ Provides the dictID of the dictionary loaded into ddict. If @return == 0, the dictionary is not conformant to Zstandard specification, or empty. Non-conformant dictionaries can still be loaded, but as content-only dictionaries.
ZSTD_getDictID_fromDict
ZSTD_getDictID_fromDict() : Requires v1.4.0+ Provides the dictID stored within dictionary. if @return == 0, the dictionary is not conformant with Zstandard specification. It can still be loaded, but as a content-only dictionary.
ZSTD_getDictID_fromFrame
ZSTD_getDictID_fromFrame() : Requires v1.4.0+ Provides the dictID required to decompressed the frame stored within src. If @return == 0, the dictID could not be decoded. This could for one of the following reasons :
ZSTD_getErrorCode
ZSTD_getErrorCode() : convert a size_t function result into a ZSTD_ErrorCode enum type, which can be used to compare with enum list published above
ZSTD_getErrorName
ZSTD_getErrorName() : provides error code string from function result (useful for debugging)
ZSTD_getErrorString
ZSTD_getErrorString() : provides error code string from enum
ZSTD_getFrameContentSize
ZSTD_getFrameContentSize() : compatible with legacy mode @return : decompressed size of the single frame pointed to be src if known, otherwise - ZSTD_CONTENTSIZE_UNKNOWN if the size cannot be determined - ZSTD_CONTENTSIZE_ERROR if an error occurred (e.g. invalid magic number, srcSize too small)
ZSTD_getFrameHeader
ZSTD_getFrameHeader() : decode Frame Header, or requires larger srcSize. @return : 0, zfhPtr is correctly filled, >0, srcSize is too small, value is wanted srcSize amount, or an error code, which can be tested using ZSTD_isError()
ZSTD_getFrameHeader_advanced
ZSTD_getFrameHeader_advanced() : same as ZSTD_getFrameHeader(), with added capability to select a format (like ZSTD_f_zstd1_magicless)
ZSTD_getFrameProgression
ZSTD_getParams
ZSTD_getParams() : same as ZSTD_getCParams(), but @return a full ZSTD_parameters object instead of sub-component ZSTD_compressionParameters. All fields of ZSTD_frameParameters are set to default : contentSize=1, checksum=0, noDictID=0
ZSTD_getSeqStore
ZSTD_getcBlockSize
ZSTD_getcBlockSize() : Provides the size of compressed block from block header src
ZSTD_initCStream
Equivalent to:
ZSTD_initCStream_advanced
ZSTD_initCStream_advanced() : This function is DEPRECATED, and is equivalent to: ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); ZSTD_CCtx_setParams(zcs, params); ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize); ZSTD_CCtx_loadDictionary(zcs, dict, dictSize);
ZSTD_initCStream_srcSize
ZSTD_initCStream_srcSize() : This function is DEPRECATED, and equivalent to: ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); ZSTD_CCtx_refCDict(zcs, NULL); // clear the dictionary (if any) ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel); ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize);
ZSTD_initCStream_usingCDict
ZSTD_initCStream_usingCDict() : This function is DEPRECATED, and equivalent to: ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); ZSTD_CCtx_refCDict(zcs, cdict);
ZSTD_initCStream_usingCDict_advanced
ZSTD_initCStream_usingCDict_advanced() : This function is DEPRECATED, and is equivalent to: ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); ZSTD_CCtx_setFParams(zcs, fParams); ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize); ZSTD_CCtx_refCDict(zcs, cdict);
ZSTD_initCStream_usingDict
ZSTD_initCStream_usingDict() : This function is DEPRECATED, and is equivalent to: ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel); ZSTD_CCtx_loadDictionary(zcs, dict, dictSize);
ZSTD_initDStream
ZSTD_initDStream() : Initialize/reset DStream state for new decompression operation. Call before new decompression operation using same DStream.
ZSTD_initDStream_usingDDict
This function is deprecated, and is equivalent to:
ZSTD_initDStream_usingDict
This function is deprecated, and is equivalent to:
ZSTD_initStaticCCtx
ZSTD_initStatic*() : Initialize an object using a pre-allocated fixed-size buffer. workspace: The memory area to emplace the object into. Provided pointer must be 8-bytes aligned. Buffer must outlive object. workspaceSize: Use ZSTD_estimate*Size() to determine how large workspace must be to support target scenario. @return : pointer to object (same address as workspace, just different type), or NULL if error (size too small, incorrect alignment, etc.) Note : zstd will never resize nor malloc() when using a static buffer. If the object requires more memory than available, zstd will just error out (typically ZSTD_error_memory_allocation). Note 2 : there is no corresponding “free” function. Since workspace is allocated externally, it must be freed externally too. Note 3 : cParams : use ZSTD_getCParams() to convert a compression level into its associated cParams. Limitation 1 : currently not compatible with internal dictionary creation, triggered by ZSTD_CCtx_loadDictionary(), ZSTD_initCStream_usingDict() or ZSTD_initDStream_usingDict(). Limitation 2 : static cctx currently not compatible with multi-threading. Limitation 3 : static dctx is incompatible with legacy support.
ZSTD_initStaticCDict
ZSTD_initStaticCStream
ZSTD_initStaticDCtx
ZSTD_initStaticDDict
ZSTD_initStaticDStream
ZSTD_insertBlock
ZSTD_insertBlock() : insert src block into dctx history. Useful to track uncompressed blocks.
ZSTD_invalidateRepCodes
ZSTD_isError
ZSTD_isError() : tells if a return value is an error code symbol is required for external callers
ZSTD_isFrame
ZSTD_isFrame() : Tells if the content of buffer starts with a valid Frame Identifier. Note : Frame Identifier is 4 bytes. If size < 4, @return will always be 0. Note 2 : Legacy Frame Identifiers are considered valid only if Legacy Support is enabled. Note 3 : Skippable Frame Identifiers are considered valid.
ZSTD_isSkippableFrame
ZSTD_isSkippableFrame() : Tells if the content of buffer starts with a valid Frame Identifier for a skippable frame.
ZSTD_loadDEntropy
ZSTD_loadDEntropy() : dict : must point at beginning of a valid zstd dictionary. @return : size of dictionary header (size of magic number + dict ID + entropy tables)
ZSTD_maxCLevel
ZSTD_mergeBlockDelimiters
ZSTD_mergeBlockDelimiters() : Given an array of ZSTD_Sequence, remove all sequences that represent block delimiters/last literals by merging them into the literals of the next sequence.
ZSTD_minCLevel
ZSTD_nextInputType
ZSTD_nextSrcSizeToDecompress
ZSTD_readSkippableFrame
ZSTD_readSkippableFrame() : Retrieves a zstd skippable frame containing data given by src, and writes it to dst buffer.
ZSTD_registerSequenceProducer
ZSTD_registerSequenceProducer() : Instruct zstd to use a block-level external sequence producer function.
ZSTD_resetCStream
ZSTD_resetCStream() : This function is DEPRECATED, and is equivalent to: ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize); Note: ZSTD_resetCStream() interprets pledgedSrcSize == 0 as ZSTD_CONTENTSIZE_UNKNOWN, but ZSTD_CCtx_setPledgedSrcSize() does not do the same, so ZSTD_CONTENTSIZE_UNKNOWN must be explicitly specified.
ZSTD_resetDStream
This function is deprecated, and is equivalent to:
ZSTD_seqToCodes
ZSTD_sequenceBound
ZSTD_sequenceBound() : srcSize : size of the input buffer @return : upper-bound for the number of sequences that can be generated from a buffer of srcSize bytes
ZSTD_sizeof_CCtx
ZSTD_sizeof_*() : Requires v1.4.0+ These functions give the current memory usage of selected object. Note that object memory usage can evolve (increase or decrease) over time.
ZSTD_sizeof_CDict
ZSTD_sizeof_CStream
ZSTD_sizeof_DCtx
ZSTD_sizeof_DDict
ZSTD_sizeof_DStream
ZSTD_toFlushNow
ZSTD_toFlushNow() : Tell how many bytes are ready to be flushed immediately. Useful for multithreading scenarios (nbWorkers >= 1). Probe the oldest active job, defined as oldest job not yet entirely flushed, and check its output buffer. @return : amount of data stored in oldest job and ready to be flushed immediately. if @return == 0, it means either :
ZSTD_versionNumber
ZSTD_versionNumber() : Return runtime library version, the value is (MAJOR100100 + MINOR*100 + RELEASE).
ZSTD_versionString
ZSTD_versionString() : Return runtime library version, like “1.4.5”. Requires v1.3.0+.
ZSTD_writeSkippableFrame
ZSTD_writeSkippableFrame() : Generates a zstd skippable frame containing data given by src, and writes it to dst buffer.
_Exit
__assert
__assert_fail
__assert_perror_fail
__ctype_get_mb_cur_max
__memcmpeq
__mempcpy
__stpcpy
__stpncpy
__strtok_r
_mm_clflush
_mm_getcsr
_mm_lfence
_mm_mfence
_mm_pause
_mm_setcsr
_mm_sfence
a64l
abort
abs
aligned_alloc
alloca
arc4random
arc4random_buf
arc4random_uniform
at_quick_exit
atexit
atof
atoi
atol
atoll
bcmp
bcopy
bsearch
bzero
calloc
clearenv
div
drand48
drand48_r
ecvt
ecvt_r
erand48
erand48_r
exit
explicit_bzero
fcvt
fcvt_r
ffs
ffsl
ffsll
free
gcvt
getenv
getloadavg
getsubopt
index
initstate
initstate_r
jrand48
jrand48_r
l64a
labs
lcong48
lcong48_r
ldiv
llabs
lldiv
lrand48
lrand48_r
malloc
mblen
mbstowcs
mbtowc
memccpy
memchr
memcmp
memcpy
memmem
memmove
mempcpy
memset
mkdtemp
mkstemp
mkstemps
mktemp
mrand48
mrand48_r
nrand48
nrand48_r
on_exit
posix_memalign
pselect
putenv
qecvt
qecvt_r
qfcvt
qfcvt_r
qgcvt
qsort
quick_exit
rand
rand_r
random
random_r
realloc
reallocarray
realpath
rindex
rpmatch
seed48
seed48_r
select
setenv
setstate
setstate_r
srand
srand48
srand48_r
srandom
srandom_r
stpcpy
stpncpy
strcasecmp
strcasecmp_l
strcasestr
strcat
strchr
strchrnul
strcmp
strcoll
strcoll_l
strcpy
strcspn
strdup
strerror
strerror_l
strerror_r
strlcat
strlcpy
strlen
strncasecmp
strncasecmp_l
strncat
strncmp
strncpy
strndup
strnlen
strpbrk
strrchr
strsep
strsignal
strspn
strstr
strtod
strtof
strtok
strtok_r
strtol
strtold
strtoll
strtoq
strtoul
strtoull
strtouq
strxfrm
strxfrm_l
system
unsetenv
valloc
wcstombs
wctomb

Type Aliases§

BIT_DStream_status
BYTE
BitContainerType
ERR_enum
FSE_CTable
Constructor and Destructor of FSE_CTable. Note that FSE_CTable size depends on ‘tableLog’ and ‘maxSymbolValue’
FSE_DTable
FSE_repeat
HUF_CElt
HUF_DTable
HUF_DecompressFastLoopFn
HUF_DecompressUsingDTableFn
HUF_flags_e
Huffman flags bitset. For all flags, 0 is the default value.
HUF_repeat
S8
S16
S32
S64
U8
U16
U32
U64
XXH32_hash_t
XXH64_hash_t
XXH_NAMESPACEXXH32_state_t
@typedef struct XXH32_state_s XXH32_state_t @brief The opaque state struct for the XXH32 streaming API.
XXH_NAMESPACEXXH64_state_t
Streaming ******/ /! @brief The opaque state struct for the XXH64 streaming API.
XXH_NAMESPACEXXH_errorcode
XXH_alignment
@internal @brief Enum to indicate whether a pointer is aligned.
ZSTD_CCtx
Explicit context
ZSTD_CCtx_params
ZSTD_CDict
Bulk processing dictionary API
ZSTD_CStream
ZSTD_DCtx
ZSTD_DDict
ZSTD_DStream
ZSTD_EndDirective
ZSTD_ErrorCode
ZSTD_ResetDirective
ZSTD_allocFunction
Custom memory allocation : These prototypes make it possible to pass your own allocation/free functions. ZSTD_customMem is provided at creation time, using ZSTD_create*_advanced() variants listed below. All allocation/free operations will be completed using these custom variants instead of regular <stdlib.h> ones.
ZSTD_bufferMode_e
ZSTD_cParameter
ZSTD_dParameter
Advanced decompression API (Requires v1.4.0+)
ZSTD_dStage
ZSTD_dStreamStage
ZSTD_decompressSequences_t
ZSTD_dictAttachPref_e
ZSTD_dictContentType_e
ZSTD_dictLoadMethod_e
ZSTD_dictUses_e
ZSTD_forceIgnoreChecksum_e
ZSTD_format_e
ZSTD_frameType_e
ZSTD_freeFunction
ZSTD_inBuffer
Streaming
ZSTD_litLocation_e
ZSTD_literalCompressionMode_e
ZSTD_longLengthType_e
ZSTD_longOffset_e
ZSTD_nextInputType_e
ZSTD_outBuffer
ZSTD_overlap_e
ZSTD_paramSwitch_e
ZSTD_refMultipleDDicts_e
ZSTD_sequenceFormat_e
ZSTD_sequenceProducer_F
ZSTD_strategy
Advanced compression API (Requires v1.4.0+)
ZSTD_threadPool
Thread pool : These prototypes make it possible to share a thread pool among multiple compression contexts. This can limit resources for applications with multiple threads where each one uses a threaded compression mode (via ZSTD_c_nbWorkers parameter). ZSTD_createThreadPool creates a new thread pool with a given number of threads. Note that the lifetime of such pool must exist while being used. ZSTD_CCtx_refThreadPool assigns a thread pool to a context (use NULL argument value to use an internal thread pool). ZSTD_freeThreadPool frees a thread pool, accepts NULL pointer.
_Float32
_Float64
_Float32x
_Float64x
__blkcnt64_t
__blkcnt_t
__blksize_t
__caddr_t
__clock_t
__clockid_t
__compar_fn_t
__daddr_t
__dev_t
__fd_mask
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__int_least8_t
__int_least16_t
__int_least32_t
__int_least64_t
__intmax_t
__intptr_t
__key_t
__locale_t
__loff_t
__m64
__m128
__m128_u
__m128bh
__m128d
__m128d_u
__m128h
__m128h_u
__m128i
__m128i_u
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__pthread_list_t
__pthread_slist_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds64_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__thrd_t
__time_t
__timer_t
__tss_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uint_least8_t
__uint_least16_t
__uint_least32_t
__uint_least64_t
__uintmax_t
__useconds_t
__v1di
__v2df
__v2di
__v2du
__v2si
__v4hi
__v4sf
__v4si
__v4su
__v8bf
__v8hf
__v8hi
__v8hu
__v8qi
__v16qi
__v16qs
__v16qu
blkcnt_t
blksize_t
blockType_e
caddr_t
clock_t
clockid_t
daddr_t
dev_t
fd_mask
fsblkcnt_t
fsfilcnt_t
fsid_t
gid_t
id_t
ino_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
key_t
locale_t
loff_t
mode_t
nlink_t
off_t
pid_t
pthread_key_t
pthread_once_t
pthread_spinlock_t
pthread_t
quad_t
rankValCol_t
rankVal_t
register_t
seqDef
sigset_t
streaming_operation
skipping file: ../common/zstd_deps.h / / skipping file: ../zstd.h / / skipping file: ../common/zstd_internal.h / / skipping file: zstd_decompress_internal.h
suseconds_t
symbolEncodingType_e
time_t
timer_t
u_char
u_int
u_int8_t
u_int16_t
u_int32_t
u_int64_t
u_long
u_quad_t
u_short
uid_t
uint
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
ulong
unalign16
unalign32
unalign64
unalignArch
ushort
wchar_t
xxh_u8
xxh_u32
xxh_u64
@} @ingroup impl @{ / /******* Memory access

Unions§

__atomic_wide_counter
pthread_attr_t
pthread_barrier_t
pthread_barrierattr_t
pthread_cond_t
pthread_condattr_t
pthread_mutex_t
pthread_mutexattr_t
pthread_rwlock_t
pthread_rwlockattr_t