48 allocator->mem_malloc(allocator,
sizeof(*vec)));
52 vec->allocator = allocator;
53 vec->sizeof_value = sizeof_value;
55 vec->data =
static_cast<void*
>(
56 allocator->mem_malloc(allocator, vec->sizeof_value * size));
70 ulint new_total = vec->total * 2;
71 ulint old_size = vec->used * vec->sizeof_value;
72 ulint new_size = new_total * vec->sizeof_value;
74 vec->data =
static_cast<void*
>(vec->allocator->mem_resize(
75 vec->allocator, vec->data, old_size, new_size));
77 vec->total = new_total;