Searched refs:zeroed_allocator (Results 1 – 3 of 3) sorted by relevance
43 list_t *list_new_internal(list_free_cb callback, const allocator_t *zeroed_allocator);58 const allocator_t *zeroed_allocator) { in hash_map_new_internal() argument61 assert(zeroed_allocator != NULL); in hash_map_new_internal()63 hash_map_t *hash_map = zeroed_allocator->alloc(sizeof(hash_map_t)); in hash_map_new_internal()70 hash_map->allocator = zeroed_allocator; in hash_map_new_internal()74 hash_map->bucket = zeroed_allocator->alloc(sizeof(hash_map_bucket_t) * num_bucket); in hash_map_new_internal()76 zeroed_allocator->free(hash_map); in hash_map_new_internal()
24 list_t *list_new_internal(list_free_cb callback, const allocator_t *zeroed_allocator) { in list_new_internal() argument25 list_t *list = (list_t *)zeroed_allocator->alloc(sizeof(list_t)); in list_new_internal()30 list->allocator = zeroed_allocator; in list_new_internal()
49 const allocator_t *zeroed_allocator);