Blender V4.3
BLI_array_store.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct BArrayState BArrayState;
17typedef struct BArrayStore BArrayStore;
18
39BArrayStore *BLI_array_store_create(unsigned int stride, unsigned int chunk_count);
48
60
73 const void *data,
74 size_t data_len,
75 const BArrayState *state_reference);
82
91void BLI_array_store_state_data_get(const BArrayState *state, void *data);
96
101
102#ifdef __cplusplus
103}
104#endif
BArrayState * BLI_array_store_state_add(BArrayStore *bs, const void *data, size_t data_len, const BArrayState *state_reference)
void BLI_array_store_state_remove(BArrayStore *bs, BArrayState *state)
size_t BLI_array_store_calc_size_expanded_get(const BArrayStore *bs)
void BLI_array_store_clear(BArrayStore *bs)
bool BLI_array_store_is_valid(BArrayStore *bs)
size_t BLI_array_store_state_size_get(BArrayState *state)
void * BLI_array_store_state_data_get_alloc(BArrayState *state, size_t *r_data_len)
void BLI_array_store_state_data_get(const BArrayState *state, void *data)
void BLI_array_store_destroy(BArrayStore *bs)
size_t BLI_array_store_calc_size_compacted_get(const BArrayStore *bs)
BArrayStore * BLI_array_store_create(unsigned int stride, unsigned int chunk_count)
static ulong state[N]