Lines Matching refs:elem_size
56 size_t elem_size; member
83 return (void *) ((char *) heap->elements + heap->elem_size * i); in spl_heap_elem()
91 if (heap->elem_size == sizeof(spl_pqueue_elem)) { in spl_heap_elem_copy()
94 ZEND_ASSERT(heap->elem_size == sizeof(zval)); in spl_heap_elem_copy()
252 …cmp_func cmp, spl_ptr_heap_ctor_func ctor, spl_ptr_heap_dtor_func dtor, size_t elem_size) /* {{{ */ in spl_ptr_heap_init() argument
259 heap->elements = ecalloc(PTR_HEAP_BLOCK_SIZE, elem_size); in spl_ptr_heap_init()
263 heap->elem_size = elem_size; in spl_ptr_heap_init()
273 size_t alloc_size = heap->max_size * heap->elem_size; in spl_ptr_heap_insert()
368 heap->elem_size = from->elem_size; in spl_ptr_heap_clone()
370 heap->elements = safe_emalloc(from->elem_size, from->max_size, 0); in spl_ptr_heap_clone()
371 memcpy(heap->elements, from->elements, from->elem_size * from->max_size); in spl_ptr_heap_clone()