59 ulint initial_hash_cells);
82 const void *data,
ulint data_len) {
const void * ha_storage_put_memlim(ha_storage_t *storage, const void *data, ulint data_len, ulint memlim)
Copies data into the storage and returns a pointer to the copy.
Definition: ha0storage.cc:83
static void ha_storage_empty(ha_storage_t **storage)
Empties a hash storage, freeing memory occupied by data chunks.
static ulint ha_storage_get_size(const ha_storage_t *storage)
Gets the size of the memory used by a storage.
static const char * ha_storage_put_str_memlim(ha_storage_t *storage, const char *str, ulint memlim)
Copies string into the storage and returns a pointer to the copy obeying a memory limit.
Definition: ha0storage.h:105
static const char * ha_storage_put_str(ha_storage_t *storage, const char *str)
Copies string into the storage and returns a pointer to the copy.
Definition: ha0storage.h:92
constexpr uint32_t HA_STORAGE_DEFAULT_HEAP_BYTES
This value is used by default by ha_storage_create().
Definition: ha0storage.h:43
constexpr uint32_t HA_STORAGE_DEFAULT_HASH_CELLS
This value is used by default by ha_storage_create().
Definition: ha0storage.h:47
static ha_storage_t * ha_storage_create(ulint initial_heap_bytes, ulint initial_hash_cells)
Creates a hash storage.
static void ha_storage_free(ha_storage_t *storage)
Frees a hash storage and everything it contains, it cannot be used after this call.
static const void * ha_storage_put(ha_storage_t *storage, const void *data, ulint data_len)
Same as ha_storage_put_memlim() but without memory limit.
Definition: ha0storage.h:81
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1081
Hash storage for strings.
Definition: ha0storage.ic:42
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:406