Expand description
Unsafe Rust bindings for blosc2 - a fast, compressed, persistent binary data store library.
§Features
Cargo features enable or disable support for various compression codecs such as zstd and
zlib.
§Error Handling
Errors are represented by int codes. In addition, if the environment variable
BLOSC_TRACE is set, it will print detailed trace during failures which is useful for
debugging.
Structs§
- __
Bindgen Opaque Array - If Bindgen could only determine the size and alignment of a type, it is represented like this.
- b2nd_
array_ t - @brief A multidimensional array of data that can be compressed.
- b2nd_
context_ s - blosc2_
codec - blosc2_
context_ s - blosc2_
cparams - @brief The parameters for creating a context for compression purposes.
- blosc2_
dparams - @brief The parameters for creating a context for decompression purposes.
- blosc2_
filter - @brief The parameters for a user-defined filter.
- blosc2_
frame_ s - blosc2_
instr - blosc2_
io - blosc2_
io_ cb - blosc2_
metalayer - @brief This struct is meant to store metadata information inside a #blosc2_schunk, allowing to specify, for example, how to interpret the contents included in the schunk.
- blosc2_
postfilter_ params - @brief The parameters for a postfilter function.
- blosc2_
prefilter_ params - @brief The parameters for a prefilter function.
- blosc2_
schunk - @brief This struct is the standard container for Blosc 2 compressed data.
- blosc2_
storage - @brief This struct is meant for holding storage parameters for a for a blosc2 container, allowing to specify, for example, how to interpret the contents included in the schunk.
- blosc2_
tuner - chunk_
cache_ s - @brief An optional cache for a single block.
Constants§
- B2ND_
DEFAULT_ DTYPE - B2ND_
DEFAULT_ DTYPE_ FORMAT - B2ND_
MAX_ DIM - B2ND_
MAX_ METALAYERS - B2ND_
METALAYER_ VERSION - BLOS
C1_ VERSION_ FORMAT - BLOS
C1_ VERSION_ FORMAT_ PRE1 - BLOS
C2_ BIGENDIAN - !< data is in big-endian ordering
- BLOS
C2_ CHUNK_ BLOCKSIZE - !< (int32) size of internal blocks
- BLOS
C2_ CHUNK_ BLOS C2_ FLAGS - !< flags specific for Blosc2 functionality
- BLOS
C2_ CHUNK_ CBYTES - !< (int32) compressed size of the buffer (including this header)
- BLOS
C2_ CHUNK_ FILTER_ CODES - !< the codecs for the filter pipeline (1 byte per code)
- BLOS
C2_ CHUNK_ FILTER_ META - !< meta info for the filter pipeline (1 byte per code)
- BLOS
C2_ CHUNK_ FLAGS - !< flags and codec info
- BLOS
C2_ CHUNK_ NBYTES - !< (int32) uncompressed size of the buffer (this header is not included)
- BLOS
C2_ CHUNK_ TYPESIZE - !< (uint8) the number of bytes of the atomic type
- BLOS
C2_ CHUNK_ VERSION - !< the version for the chunk format
- BLOS
C2_ CHUNK_ VERSIONLZ - !< the version for the format of internal codec
- BLOS
C2_ DEFINED_ CODECS_ START - BLOS
C2_ DEFINED_ CODECS_ STOP - BLOS
C2_ DEFINED_ FILTERS_ START - BLOS
C2_ DEFINED_ FILTERS_ STOP - BLOS
C2_ DEFINED_ TUNER_ START - BLOS
C2_ DEFINED_ TUNER_ STOP - BLOS
C2_ ERROR_ 2GB_ LIMIT - !< Sizes larger than 2gb not supported
- BLOS
C2_ ERROR_ CHUNK_ APPEND - !< Chunk append failure
- BLOS
C2_ ERROR_ CHUNK_ INSERT - !< Chunk insert failure
- BLOS
C2_ ERROR_ CHUNK_ UPDATE - !< Chunk update failure
- BLOS
C2_ ERROR_ CODEC_ DICT - !< Codec dictionary error
- BLOS
C2_ ERROR_ CODEC_ PARAM - !< Invalid parameter supplied to codec
- BLOS
C2_ ERROR_ CODEC_ SUPPORT - !< Codec not supported
- BLOS
C2_ ERROR_ DATA - BLOS
C2_ ERROR_ FAILURE - BLOS
C2_ ERROR_ FILE_ OPEN - !< File open failure
- BLOS
C2_ ERROR_ FILE_ READ - !< File read failure
- BLOS
C2_ ERROR_ FILE_ REMOVE - !< Remove file failure
- BLOS
C2_ ERROR_ FILE_ TRUNCATE - !< File truncate failure
- BLOS
C2_ ERROR_ FILE_ WRITE - !< File write failure
- BLOS
C2_ ERROR_ FILTER_ PIPELINE - !< Filter pipeline error
- BLOS
C2_ ERROR_ FRAME_ SPECIAL - !< Special frame failure
- BLOS
C2_ ERROR_ FRAME_ TYPE - !< Wrong type for frame
- BLOS
C2_ ERROR_ INVALID_ HEADER - !< Invalid value in header
- BLOS
C2_ ERROR_ INVALID_ INDEX - !< Invalid index
- BLOS
C2_ ERROR_ INVALID_ PARAM - !< Invalid parameter supplied to function
- BLOS
C2_ ERROR_ MAX_ BUFSIZE_ EXCEEDED - !< Max buffer size exceeded
- BLOS
C2_ ERROR_ MEMORY_ ALLOC - BLOS
C2_ ERROR_ METALAYER_ NOT_ FOUND - !< Metalayer has not been found
- BLOS
C2_ ERROR_ NOT_ FOUND - !< Not found
- BLOS
C2_ ERROR_ NULL_ POINTER - !< Pointer is null
- BLOS
C2_ ERROR_ PLUGIN_ IO - !< IO plugin error
- BLOS
C2_ ERROR_ POSTFILTER - !< Postfilter failure
- BLOS
C2_ ERROR_ READ_ BUFFER - !< Not enough space to read
- BLOS
C2_ ERROR_ RUN_ LENGTH - !< Bad run length encoding
- BLOS
C2_ ERROR_ SCHUNK_ COPY - !< Super-chunk copy failure
- BLOS
C2_ ERROR_ SCHUNK_ SPECIAL - !< Special super-chunk failure
- BLOS
C2_ ERROR_ STREAM - BLOS
C2_ ERROR_ SUCCESS - BLOS
C2_ ERROR_ THREAD_ CREATE - !< Thread or thread context creation failure
- BLOS
C2_ ERROR_ TUNER - !< Tuner failure
- BLOS
C2_ ERROR_ VERSION_ SUPPORT - !< Version not supported
- BLOS
C2_ ERROR_ WRITE_ BUFFER - !< Not enough space to write
- BLOS
C2_ GLOBAL_ REGISTERED_ CODECS - BLOS
C2_ GLOBAL_ REGISTERED_ CODECS_ START - BLOS
C2_ GLOBAL_ REGISTERED_ CODECS_ STOP - BLOS
C2_ GLOBAL_ REGISTERED_ FILTERS - BLOS
C2_ GLOBAL_ REGISTERED_ FILTERS_ START - BLOS
C2_ GLOBAL_ REGISTERED_ FILTERS_ STOP - BLOS
C2_ GLOBAL_ REGISTERED_ TUNERS - BLOS
C2_ GLOBAL_ REGISTERED_ TUNER_ START - BLOS
C2_ GLOBAL_ REGISTERED_ TUNER_ STOP - BLOS
C2_ INSTR_ CODEC - !< codec is instrumented (mainly for development)
- BLOS
C2_ IO_ BLOSC_ DEFINED - BLOS
C2_ IO_ FILESYSTEM - BLOS
C2_ IO_ FILESYSTEM_ MMAP - BLOS
C2_ IO_ REGISTERED - BLOS
C2_ IO_ USER_ DEFINED - BLOS
C2_ MAXBLOCKSIZE - !< maximum size for blocks
- BLOS
C2_ MAXDICTSIZE - !< maximum size for compression dicts
- BLOS
C2_ MAXTYPESIZE - !< maximum size for types
- BLOS
C2_ MAX_ BUFFERSIZE - BLOS
C2_ MAX_ DIM - BLOS
C2_ MAX_ FILTERS - BLOS
C2_ MAX_ METALAYERS - BLOS
C2_ MAX_ OVERHEAD - BLOS
C2_ MAX_ UDFILTERS - BLOS
C2_ MAX_ VLMETALAYERS - BLOS
C2_ METALAYER_ NAME_ MAXLEN - BLOS
C2_ NO_ SPECIAL - !< no special value
- BLOS
C2_ SPECIAL_ LASTID - !< last valid ID for special value (update this adequately)
- BLOS
C2_ SPECIAL_ MASK - !< special value mask (prev IDs cannot be larger than this)
- BLOS
C2_ SPECIAL_ NAN - !< NaN special value
- BLOS
C2_ SPECIAL_ UNINIT - !< non initialized values
- BLOS
C2_ SPECIAL_ VALUE - !< repeated special value
- BLOS
C2_ SPECIAL_ ZERO - !< zero special value
- BLOS
C2_ USEDICT - !< use dictionaries with codec
- BLOS
C2_ USER_ REGISTERED_ CODECS_ START - BLOS
C2_ USER_ REGISTERED_ CODECS_ STOP - BLOS
C2_ USER_ REGISTERED_ FILTERS_ START - BLOS
C2_ USER_ REGISTERED_ FILTERS_ STOP - BLOS
C2_ USER_ REGISTERED_ TUNER_ START - BLOS
C2_ USER_ REGISTERED_ TUNER_ STOP - BLOS
C2_ VERSION_ DATE - BLOS
C2_ VERSION_ FORMAT - BLOS
C2_ VERSION_ FORMAT_ ALPHA - BLOS
C2_ VERSION_ FORMAT_ BETA1 - BLOS
C2_ VERSION_ FORMAT_ STABLE - BLOS
C2_ VERSION_ FRAME_ FORMAT - BLOS
C2_ VERSION_ FRAME_ FORMAT_ BETA2 - BLOS
C2_ VERSION_ FRAME_ FORMAT_ RC1 - BLOS
C2_ VERSION_ MAJOR - BLOS
C2_ VERSION_ MINOR - BLOS
C2_ VERSION_ RELEASE - BLOS
C2_ VERSION_ STRING - BLOS
C2_ VLMETALAYERS_ NAME_ MAXLEN - BLOSC_
ALWAYS_ SPLIT - BLOSC_
AUTO_ SPLIT - BLOSC_
BITSHUFFLE - BLOSC_
BLOSCLZ - BLOSC_
BLOSCLZ_ COMPNAME - BLOSC_
BLOSCLZ_ FORMAT - BLOSC_
BLOSCLZ_ LIB - BLOSC_
BLOSCLZ_ LIBNAME - BLOSC_
BLOSCLZ_ VERSION_ FORMAT - BLOSC_
DELTA - BLOSC_
DOBITSHUFFLE - !< bit-wise shuffle
- BLOSC_
DODELTA - !< delta coding
- BLOSC_
DOSHUFFLE - !< byte-wise shuffle
- BLOSC_
EXTENDED_ HEADER_ LENGTH - BLOSC_
FORWARD_ COMPAT_ SPLIT - BLOSC_
IO_ LAST_ BLOSC_ DEFINED - BLOSC_
IO_ LAST_ REGISTERED - BLOSC_
LAST_ CODEC - BLOSC_
LAST_ FILTER - BLOSC_
LAST_ REGISTERED_ CODEC - BLOSC_
LAST_ REGISTERED_ FILTER - BLOSC_
LAST_ REGISTERED_ TUNE - BLOSC_
LAST_ TUNER - BLOSC_
LZ4 - BLOSC_
LZ4HC - BLOSC_
LZ4HC_ COMPNAME - BLOSC_
LZ4HC_ FORMAT - BLOSC_
LZ4HC_ VERSION_ FORMAT - BLOSC_
LZ4_ COMPNAME - BLOSC_
LZ4_ FORMAT - BLOSC_
LZ4_ LIB - BLOSC_
LZ4_ LIBNAME - BLOSC_
LZ4_ VERSION_ FORMAT - BLOSC_
MAX_ TYPESIZE - BLOSC_
MEMCPYED - !< plain copy
- BLOSC_
MIN_ BUFFERSIZE - BLOSC_
MIN_ HEADER_ LENGTH - BLOSC_
NEVER_ SPLIT - BLOSC_
NOFILTER - BLOSC_
NOSHUFFLE - BLOSC_
SCHUNK_ LIB - !< compressor library in super-chunk header
- BLOSC_
SHUFFLE - BLOSC_
STUNE - BLOSC_
TRUNC_ PREC - BLOSC_
UDCODEC_ FORMAT - BLOSC_
UDCODEC_ LIB - BLOSC_
UDCODEC_ VERSION_ FORMAT - BLOSC_
ZLIB - BLOSC_
ZLIB_ COMPNAME - BLOSC_
ZLIB_ FORMAT - BLOSC_
ZLIB_ LIB - BLOSC_
ZLIB_ LIBNAME - BLOSC_
ZLIB_ VERSION_ FORMAT - BLOSC_
ZSTD - BLOSC_
ZSTD_ COMPNAME - BLOSC_
ZSTD_ FORMAT - BLOSC_
ZSTD_ LIB - BLOSC_
ZSTD_ LIBNAME - BLOSC_
ZSTD_ VERSION_ FORMAT - DTYPE_
NUMPY_ FORMAT - blosc2_
rs_ mmap_ mode_ BLOS C2_ RS_ MMAP_ COW - blosc2_
rs_ mmap_ mode_ BLOS C2_ RS_ MMAP_ READ - blosc2_
rs_ mmap_ mode_ BLOS C2_ RS_ MMAP_ READ_ WRITE
Functions§
- b2nd_
append ⚠ - Append a buffer at the end of a b2nd array.
- b2nd_
concatenate ⚠ - @brief Concatenate arrays. The result is stored in a new b2nd array, or an enlarged one.
- b2nd_
copy ⚠ - @brief Make a copy of the array data. The copy is done into a new b2nd array.
- b2nd_
copy_ ⚠buffer - @brief Copy a slice of a source array into another array. The arrays have the same number of dimensions (though their shapes may differ), the same item size, and they are stored as C buffers with contiguous data (any padding is considered part of the array).
- b2nd_
copy_ ⚠buffer2 - @brief Copy a slice of a source array into another array. The arrays have the same number of dimensions (though their shapes may differ), the same item size, and they are stored as C buffers with contiguous data (any padding is considered part of the array).
- b2nd_
create_ ⚠ctx - @brief Create b2nd params.
- b2nd_
delete ⚠ - @brief Delete shrinking the given axis delete_len items.
- b2nd_
deserialize_ ⚠meta - @brief Read the metainfo in the b2nd metalayer.
- b2nd_
empty ⚠ - @brief Create an empty array.
- b2nd_
expand_ ⚠dims - @brief Add a newaxis to a b2nd array at location @p axis.
- b2nd_
free ⚠ - @brief Free an array.
- b2nd_
free_ ⚠ctx - @brief Free the resources associated with b2nd_context_t.
- b2nd_
from_ ⚠cbuffer - @brief Create a b2nd array from a C buffer.
- b2nd_
from_ ⚠cframe - @brief Create a b2nd array from a serialized super-chunk.
- b2nd_
from_ ⚠schunk - @brief Create a b2nd array from a super-chunk. It can only be used if the array is backed by a blosc super-chunk.
- b2nd_
full ⚠ - Create an array, with @p fill_value being used as the default value for uninitialized portions of the array.
- b2nd_
get_ ⚠orthogonal_ selection - @brief Get an element selection along each dimension of an array independently.
- b2nd_
get_ ⚠slice - @brief Get a slice from an array and store it into a new array.
- b2nd_
get_ ⚠slice_ cbuffer - @brief Get a slice from an array and store it into a C buffer.
- b2nd_
insert ⚠ - @brief Insert given buffer in an array extending the given axis.
- b2nd_
nans ⚠ - Create an array, with NaN being used as the default value for uninitialized portions of the array. Should only be used with type sizes of either 4 or 8. Other sizes generate an error.
- b2nd_
open ⚠ - @brief Open a b2nd array from a file.
- b2nd_
open_ ⚠offset - @brief Open a b2nd array from a file using an offset.
- b2nd_
print_ ⚠meta - @brief Print metalayer parameters.
- b2nd_
resize ⚠ - @brief Resize the shape of an array
- b2nd_
save ⚠ - @brief Save b2nd array into a specific urlpath.
- b2nd_
save_ ⚠append - @brief Append a b2nd array into a file.
- b2nd_
serialize_ ⚠meta - @brief Create the metainfo for the b2nd metalayer.
- b2nd_
set_ ⚠orthogonal_ selection - @brief Set an element selection along each dimension of an array independently.
- b2nd_
set_ ⚠slice_ cbuffer - @brief Set a slice in a b2nd array using a C buffer.
- b2nd_
squeeze ⚠ - @brief Squeeze a b2nd array
- b2nd_
squeeze_ ⚠index - @brief Squeeze a b2nd array
- b2nd_
to_ ⚠cbuffer - @brief Extract the data from a b2nd array into a C buffer.
- b2nd_
to_ ⚠cframe - Create a serialized super-chunk from a b2nd array.
- b2nd_
uninit ⚠ - @brief Create an uninitialized array.
- b2nd_
zeros ⚠ - Create an array, with zero being used as the default value for uninitialized portions of the array.
- blosc1_
cbuffer_ ⚠metainfo - @brief Get information about a compressed buffer, namely the type size (@p typesize), as well as some internal @p flags.
- blosc1_
cbuffer_ ⚠sizes - @brief Get information about a compressed buffer, namely the number of uncompressed bytes (@p nbytes) and compressed (@p cbytes). It also returns the @p blocksize (which is used internally for doing the compression by blocks).
- blosc1_
cbuffer_ ⚠validate - @brief Checks that the compressed buffer starting at @p cbuffer of length @p cbytes may contain valid blosc compressed data, and that it is safe to call blosc1_decompress/blosc1_getitem. On success, returns 0 and sets @p nbytes to the size of the uncompressed data. This does not guarantee that the decompression function won’t return an error, but does guarantee that it is safe to attempt decompression.
- blosc1_
compress ⚠ - @brief Compress a block of data in the @p src buffer and returns the size of compressed block.
- blosc1_
decompress ⚠ - @brief Decompress a block of compressed data in @p src, put the result in @p dest and returns the size of the decompressed block.
- blosc1_
get_ ⚠blocksize - @brief Get the internal blocksize to be used during compression. 0 means that an automatic blocksize is computed internally.
- blosc1_
get_ ⚠compressor - @brief Get the current compressor that is used for compression.
- blosc1_
getitem ⚠ - @brief Get @p nitems (of @p typesize size) in @p src buffer starting in @p start. The items are returned in @p dest buffer, which has to have enough space for storing all items.
- blosc1_
set_ ⚠blocksize - @brief Force the use of a specific blocksize. If 0, an automatic blocksize will be used (the default).
- blosc1_
set_ ⚠compressor - @brief Select the compressor to be used. The supported ones are “blosclz”, “lz4”, “lz4hc”, “zlib” and “ztsd”. If this function is not called, then “blosclz” will be used.
- blosc1_
set_ ⚠splitmode - @brief Set the split mode.
- blosc2_
bitshuffle ⚠ - @brief Applies the bitshuffle operation to a block of data in @p src, and puts the result in @p dest.
- blosc2_
bitunshuffle ⚠ - @brief Applies the inverse bitshuffle operation to a block of data in @p src, and puts the result in @p dest.
- blosc2_
cbuffer_ ⚠complib - @brief Get the compressor library/format used in a compressed buffer.
- blosc2_
cbuffer_ ⚠sizes - @brief Get information about a compressed buffer, namely the number of uncompressed bytes (@p nbytes) and compressed (@p cbytes). It also returns the @p blocksize (which is used internally for doing the compression by blocks).
- blosc2_
cbuffer_ ⚠versions - @brief Get information about a compressed buffer, namely the internal Blosc format version (@p version) and the format for the internal Lempel-Ziv compressor used (@p versionlz).
- blosc2_
chunk_ ⚠nans - @brief Create a chunk made of nans.
- blosc2_
chunk_ ⚠repeatval - @brief Create a chunk made of repeated values.
- blosc2_
chunk_ ⚠uninit - @brief Create a chunk made of uninitialized values.
- blosc2_
chunk_ ⚠zeros - @brief Create a chunk made of zeros.
- blosc2_
compcode_ ⚠to_ compname - @brief Get the compressor name associated with the compressor code.
- blosc2_
compname_ ⚠to_ compcode - @brief Get the compressor code associated with the compressor name.
- blosc2_
compress ⚠ - blosc2_
compress_ ⚠ctx - @brief Context interface to Blosc compression. This does not require a call to #blosc2_init and can be called from multithreaded applications without the global lock being used, so allowing Blosc be executed simultaneously in those scenarios.
- blosc2_
create_ ⚠cctx - @brief Create a context for @a *_ctx() compression functions.
- blosc2_
create_ ⚠dctx - @brief Create a context for *_ctx() decompression functions.
- blosc2_
ctx_ ⚠get_ cparams - @brief Create a @p cparams associated to a context.
- blosc2_
ctx_ ⚠get_ dparams - @brief Create a @p dparams associated to a context.
- blosc2_
decompress ⚠ - @brief Decompress a block of compressed data in @p src, put the result in @p dest and returns the size of the decompressed block.
- blosc2_
decompress_ ⚠ctx - @brief Context interface to Blosc decompression. This does not require a call to #blosc2_init and can be called from multithreaded applications without the global lock being used, so allowing Blosc be executed simultaneously in those scenarios.
- blosc2_
destroy ⚠ - @brief Destroy the Blosc library environment.
- blosc2_
error_ ⚠string - @brief Get the string representation of an error code.
- blosc2_
frame_ ⚠get_ offsets - @brief Get the offsets of a frame in a super-chunk.
- blosc2_
free_ ⚠ctx - @brief Free the resources associated with a context.
- blosc2_
free_ ⚠resources - @brief Free possible memory temporaries and thread resources. Use this when you are not going to use Blosc for a long while.
- blosc2_
get_ ⚠blosc2_ cparams_ defaults - @brief Get default struct for compression params meant for user initialization.
- blosc2_
get_ ⚠blosc2_ dparams_ defaults - @brief Get default struct for decompression params meant for user initialization.
- blosc2_
get_ ⚠blosc2_ io_ defaults - @brief Get default struct for #blosc2_io meant for user initialization.
- blosc2_
get_ ⚠blosc2_ storage_ defaults - @brief Get default struct for #blosc2_storage meant for user initialization.
- blosc2_
get_ ⚠complib_ info - @brief Get info from compression libraries included in the current build.
- blosc2_
get_ ⚠io_ cb - @brief Get a user-defined input/output callback in Blosc.
- blosc2_
get_ ⚠nthreads - @brief Returns the current number of threads that are used for compression/decompression.
- blosc2_
get_ ⚠slice_ nchunks - blosc2_
get_ ⚠version_ string - @brief Get the version of Blosc in string format.
- blosc2_
getitem ⚠ - @brief Get @p nitems (of @p typesize size) in @p src buffer starting in @p start. The items are returned in @p dest buffer. The dest buffer should have enough space for storing all items. This function is a more secure version of #blosc1_getitem.
- blosc2_
getitem_ ⚠ctx - @brief Context interface counterpart for #blosc1_getitem.
- blosc2_
init ⚠ - @brief Initialize the Blosc library environment.
- blosc2_
list_ ⚠compressors - @brief Get a list of compressors supported in the current build.
- blosc2_
meta_ ⚠add - @brief Add content into a new metalayer.
- blosc2_
meta_ ⚠update - @brief Update the content of an existing metalayer.
- blosc2_
multidim_ ⚠to_ unidim - blosc2_
register_ ⚠codec - @brief Register locally a user-defined codec in Blosc.
- blosc2_
register_ ⚠filter - @brief Register locally a user-defined filter in Blosc.
- blosc2_
register_ ⚠io_ cb - @brief Register a user-defined input/output callbacks in Blosc.
- blosc2_
register_ ⚠tuner - @brief Register locally a user-defined tuner in Blosc.
- blosc2_
remove_ ⚠dir - blosc2_
remove_ ⚠urlpath - blosc2_
rename_ ⚠urlpath - blosc2_
rs_ ⚠schunk_ open_ mmap - blosc2_
schunk_ ⚠append_ buffer - @brief Append a @p src data buffer to a super-chunk.
- blosc2_
schunk_ ⚠append_ chunk - @brief Append an existing @p chunk to a super-chunk.
- blosc2_
schunk_ ⚠append_ file - blosc2_
schunk_ ⚠avoid_ cframe_ free - @brief Set the private
avoid_cframe_freefield in a frame. - blosc2_
schunk_ ⚠copy - Create a copy of a super-chunk.
- blosc2_
schunk_ ⚠decompress_ chunk - @brief Decompress and return the @p nchunk chunk of a super-chunk.
- blosc2_
schunk_ ⚠delete_ chunk - @brief Delete a chunk at a specific position in a super-chunk.
- blosc2_
schunk_ ⚠fill_ special - @brief Quickly fill an empty frame with special values (zeros, NaNs, uninit).
- blosc2_
schunk_ ⚠frame_ len - @brief Get the length (in bytes) of the internal frame of the super-chunk.
- blosc2_
schunk_ ⚠free - @brief Release resources from a super-chunk.
- blosc2_
schunk_ ⚠from_ buffer - @brief Create a super-chunk out of a contiguous frame buffer.
- blosc2_
schunk_ ⚠get_ chunk - @brief Return a compressed chunk that is part of a super-chunk in the @p chunk parameter.
- blosc2_
schunk_ ⚠get_ cparams - @brief Return the @p cparams associated to a super-chunk.
- blosc2_
schunk_ ⚠get_ dparams - @brief Return the @p dparams struct associated to a super-chunk.
- blosc2_
schunk_ ⚠get_ lazychunk - @brief Return a (lazy) compressed chunk that is part of a super-chunk in the @p chunk parameter.
- blosc2_
schunk_ ⚠get_ slice_ buffer - @brief Fill buffer with a schunk slice.
- blosc2_
schunk_ ⚠insert_ chunk - @brief Insert a chunk at a specific position in a super-chunk.
- blosc2_
schunk_ ⚠new - @brief Create a new super-chunk.
- blosc2_
schunk_ ⚠open - @brief Open an existing super-chunk that is on-disk (frame). No in-memory copy is made.
- blosc2_
schunk_ ⚠open_ offset - @brief Open an existing super-chunk that is on-disk (frame). No in-memory copy is made.
- blosc2_
schunk_ ⚠open_ offset_ udio - @brief Open an existing super-chunk (no copy is made) using a user-defined I/O interface.
- blosc2_
schunk_ ⚠open_ udio - @brief Open an existing super-chunk (no copy is made) using a user-defined I/O interface.
- blosc2_
schunk_ ⚠reorder_ offsets - @brief Reorder the chunk offsets of an existing super-chunk.
- blosc2_
schunk_ ⚠set_ slice_ buffer - @brief Update a schunk slice from buffer.
- blosc2_
schunk_ ⚠to_ buffer - blosc2_
schunk_ ⚠to_ file - blosc2_
schunk_ ⚠update_ chunk - @brief Update a chunk at a specific position in a super-chunk.
- blosc2_
set_ ⚠delta - @brief Select the delta coding filter to be used.
- blosc2_
set_ ⚠maskout - @brief Set a maskout so as to avoid decompressing specified blocks.
- blosc2_
set_ ⚠nthreads - @brief Initialize a pool of threads for compression/decompression. If @p nthreads is 1, then the serial version is chosen and a possible previous existing pool is ended. If this is not called, @p nthreads is set to 1 internally.
- blosc2_
set_ ⚠threads_ callback - @brief Set the threading backend for parallel compression/decompression to use @p callback to execute work instead of using the Blosc-managed threads. The @p callback_data argument is passed through to the callback.
- blosc2_
shuffle ⚠ - @brief Applies the shuffle operation to a block of data in @p src, and puts the result in @p dest.
- blosc2_
unidim_ ⚠to_ multidim - blosc2_
unshuffle ⚠ - @brief Applies the inverse shuffle operation to a block of data in @p src, and puts the result in @p dest.
- blosc2_
vlmeta_ ⚠add - @brief Add content into a new variable-length metalayer.
- blosc2_
vlmeta_ ⚠delete - @brief Delete the variable-length metalayer from the super-chunk.
- blosc2_
vlmeta_ ⚠exists - @brief Find whether the schunk has a variable-length metalayer or not.
- blosc2_
vlmeta_ ⚠get - @brief Get the content out of a variable-length metalayer.
- blosc2_
vlmeta_ ⚠get_ names - @brief Get a list of all the variable-length metalayer names.
- blosc2_
vlmeta_ ⚠update - @brief Update the content of an existing variable-length metalayer.
- blosc_
elapsed_ ⚠nsecs - blosc_
elapsed_ ⚠secs - blosc_
set_ ⚠timestamp
Type Aliases§
- _bindgen_
ty_ 4 - _bindgen_
ty_ 5 - _bindgen_
ty_ 6 - _bindgen_
ty_ 7 - _bindgen_
ty_ 8 - @brief Codes for the different tuners shipped with Blosc
- _bindgen_
ty_ 9 - _bindgen_
ty_ 10 - @brief Codes for filters.
- _bindgen_
ty_ 11 - @brief Codes for internal flags (see blosc1_cbuffer_metainfo)
- _bindgen_
ty_ 12 - @brief Codes for new internal flags in Blosc2
- _bindgen_
ty_ 13 - @brief Values for different Blosc2 capabilities
- _bindgen_
ty_ 14 - _bindgen_
ty_ 15 - @brief Codes for the different compressors shipped with Blosc
- _bindgen_
ty_ 16 - @brief Codes for compression libraries shipped with Blosc (code must be < 8)
- _bindgen_
ty_ 17 - @brief The codes for compressor formats shipped with Blosc
- _bindgen_
ty_ 18 - @brief The version formats for compressors shipped with Blosc. All versions here starts at 1
- _bindgen_
ty_ 19 - _bindgen_
ty_ 20 - @brief Offsets for fields in Blosc2 chunk header.
- _bindgen_
ty_ 21 - @brief Run lengths for special values for chunks/frames
- _bindgen_
ty_ 22 - @brief Error codes Each time an error code is added here, its corresponding message error should be added in print_error()
- _bindgen_
ty_ 23 - Structures and functions related with user-defined input/output.
- _bindgen_
ty_ 24 - b2nd_
context_ t - @brief General parameters needed for the creation of a b2nd array.
- blosc2_
close_ cb - blosc2_
codec_ decoder_ cb - blosc2_
codec_ encoder_ cb - Structures and functions related with compression codecs.
- blosc2_
context - Structures and functions related with contexts.
- blosc2_
destroy_ cb - blosc2_
filter_ backward_ cb - blosc2_
filter_ forward_ cb - Structures and functions related with filters plugins.
- blosc2_
frame - blosc2_
open_ cb - blosc2_
postfilter_ fn - @brief The type of the postfilter function.
- blosc2_
prefilter_ fn - @brief The type of the prefilter function.
- blosc2_
read_ cb - blosc2_
rs_ mmap_ mode - blosc2_
size_ cb - blosc2_
truncate_ cb - blosc2_
write_ cb - blosc_
threads_ callback - Pointer to a callback function that executes
dojob(jobdata + i*jobdata_elsize)fori = 0 to numjobs-1, possibly in parallel threads (but not returning until alldojobcalls have returned). This allows the caller to provide a custom threading backend as an alternative to the default Blosc-managed threads.callback_datais passed through fromblosc2_set_threads_callback. - blosc_
timestamp_ t