blosc2_schunk_from_buffer

Function blosc2_schunk_from_buffer 

Source
pub unsafe extern "C" fn blosc2_schunk_from_buffer(
    cframe: *mut u8,
    len: i64,
    copy: bool,
) -> *mut blosc2_schunk
Expand description

@brief Create a super-chunk out of a contiguous frame buffer.

@param cframe The buffer of the in-memory frame. @param copy Whether the super-chunk should make a copy of the @p cframe data or not. The copy will be made to an internal sparse frame.

@remark If copy is false, the @p cframe buffer passed will be owned by the super-chunk and will be automatically freed when blosc2_schunk_free() is called. If the user frees it after the opening, bad things will happen. Don’t do that (or set @p copy).

@param len The length of the buffer (in bytes).

@return The new super-chunk.