Blender
V3.3
|
Helper functions for BLI_array_store API. More...
#include "MEM_guardedalloc.h"
#include "BLI_utildefines.h"
#include "BLI_array_store.h"
#include "BLI_array_store_utils.h"
#include "BLI_math_base.h"
Go to the source code of this file.
Functions | |
BArrayStore * | BLI_array_store_at_size_ensure (struct BArrayStore_AtSize *bs_stride, const int stride, const int chunk_size) |
BArrayStore * | BLI_array_store_at_size_get (struct BArrayStore_AtSize *bs_stride, const int stride) |
void | BLI_array_store_at_size_clear (struct BArrayStore_AtSize *bs_stride) |
void | BLI_array_store_at_size_calc_memory_usage (struct BArrayStore_AtSize *bs_stride, size_t *r_size_expanded, size_t *r_size_compacted) |
Helper functions for BLI_array_store API.
Definition in file array_store_utils.c.
void BLI_array_store_at_size_calc_memory_usage | ( | struct BArrayStore_AtSize * | bs_stride, |
size_t * | r_size_expanded, | ||
size_t * | r_size_compacted | ||
) |
Definition at line 62 of file array_store_utils.c.
References BLI_array_store_calc_size_compacted_get(), BLI_array_store_calc_size_expanded_get(), bs_stride, BArrayStore_AtSize::stride_table, and BArrayStore_AtSize::stride_table_len.
Referenced by uf_arraystore_compact_with_info(), and um_arraystore_compact_with_info().
void BLI_array_store_at_size_clear | ( | struct BArrayStore_AtSize * | bs_stride | ) |
Definition at line 49 of file array_store_utils.c.
References BLI_array_store_destroy(), bs_stride, MEM_freeN, NULL, BArrayStore_AtSize::stride_table, and BArrayStore_AtSize::stride_table_len.
Referenced by uf_arraystore_free(), and um_arraystore_free().
BArrayStore* BLI_array_store_at_size_ensure | ( | struct BArrayStore_AtSize * | bs_stride, |
const int | stride, | ||
const int | chunk_size | ||
) |
Definition at line 17 of file array_store_utils.c.
References BLI_array_store_create(), bs_stride, blender::io::obj::chunk_size, MEM_recallocN, MEM_SIZE_OPTIMAL, NULL, power_of_2_max_u(), size(), stride, BArrayStore_AtSize::stride_table, and BArrayStore_AtSize::stride_table_len.
Referenced by um_arraystore_cd_compact(), and um_arraystore_compact_ex().
BArrayStore* BLI_array_store_at_size_get | ( | struct BArrayStore_AtSize * | bs_stride, |
const int | stride | ||
) |
Definition at line 43 of file array_store_utils.c.
References BLI_assert, bs_stride, stride, and BArrayStore_AtSize::stride_table.
Referenced by um_arraystore_cd_free(), and um_arraystore_free().