Debian Codegraph @

src/c-blosc2/blosc/sframe.h

raw
1 /*********************************************************************
2 Blosc - Blocked Shuffling and Compression Library
3
4 Copyright (c) 2021 Blosc Development Team <[email protected]>
5 https://blosc.org
6 License: BSD 3-Clause (see LICENSE.txt)
7
8 See LICENSE.txt for details about copyright and rights to use.
9 **********************************************************************/
10
11 #ifndef BLOSC_SFRAME_H
12 #define BLOSC_SFRAME_H
13
14 #include "frame.h"
15
16 #include <stdbool.h>
17 #include <stdint.h>
18
19 void* sframe_open_index(const char* urlpath, const char* mode, const blosc2_io *io);
20 void* sframe_open_chunk(const char* urlpath, int64_t nchunk, const char* mode, const blosc2_io *io);
21 int sframe_delete_chunk(const char* urlpath, int64_t nchunk);
22 void* sframe_create_chunk(blosc2_frame_s* frame, uint8_t* chunk, int64_t nchunk, int64_t cbytes);
23 int32_t sframe_get_chunk(blosc2_frame_s* frame, int64_t nchunk, uint8_t** chunk, bool* needs_free);
24
25 #endif /* BLOSC_SFRAME_H */