Home
last modified time | relevance | path

Searched refs:struct_size (Results 1 – 16 of 16) sorted by relevance

/PHP-8.4/ext/dom/lexbor/lexbor/core/
H A Darray_obj.c18 size_t size, size_t struct_size) in lexbor_array_obj_init() argument
24 if (size == 0 || struct_size == 0) { in lexbor_array_obj_init()
30 array->struct_size = struct_size; in lexbor_array_obj_init()
33 * (array->size * struct_size)); in lexbor_array_obj_init()
81 * (new_size * array->struct_size)); in lexbor_array_obj_expand()
104 entry = array->list + (array->length * array->struct_size); in lexbor_array_obj_push()
107 memset(entry, 0, array->struct_size); in lexbor_array_obj_push()
123 entry = array->list + (array->length * array->struct_size); in lexbor_array_obj_push_wo_cls()
154 return array->list + (array->length * array->struct_size); in lexbor_array_obj_pop()
171 memmove(&array->list[ begin * array->struct_size ], in lexbor_array_obj_delete()
[all …]
H A Ddobject.c23 size_t chunk_size, size_t struct_size) in lexbor_dobject_init() argument
31 if (chunk_size == 0 || struct_size == 0) { in lexbor_dobject_init()
37 dobject->struct_size = struct_size; in lexbor_dobject_init()
43 lexbor_mem_align(chunk_size * dobject->struct_size)); in lexbor_dobject_init()
100 ASAN_UNPOISON_MEMORY_REGION(data, dobject->struct_size); in lexbor_dobject_alloc()
108 data = lexbor_mem_alloc(dobject->mem, dobject->struct_size); in lexbor_dobject_alloc()
114 ASAN_UNPOISON_MEMORY_REGION(data, dobject->struct_size); in lexbor_dobject_alloc()
128 memset(data, 0, dobject->struct_size); in lexbor_dobject_calloc()
142 ASAN_POISON_MEMORY_REGION(data, dobject->struct_size); in lexbor_dobject_free()
164 chunk_pos = pos * dobject->struct_size; in lexbor_dobject_by_absolute_position()
H A Dplog.c11 lexbor_plog_init(lexbor_plog_t *plog, size_t init_size, size_t struct_size) in lexbor_plog_init() argument
19 if (struct_size < sizeof(lexbor_plog_entry_t)) { in lexbor_plog_init()
20 struct_size = sizeof(lexbor_plog_entry_t); in lexbor_plog_init()
23 status = lexbor_array_obj_init(&plog->list, init_size, struct_size); in lexbor_plog_init()
H A Darray_obj.h21 size_t struct_size; member
31 size_t size, size_t struct_size);
76 return array->list + (idx * array->struct_size); in lexbor_array_obj_get()
94 return array->struct_size; in lexbor_array_obj_struct_size()
104 return array->list + ((array->length - 1) * array->struct_size); in lexbor_array_obj_last()
H A Ddobject.h24 size_t struct_size; member
34 size_t chunk_size, size_t struct_size);
H A Davl.c45 lexbor_avl_init(lexbor_avl_t *avl, size_t chunk_len, size_t struct_size) in lexbor_avl_init() argument
52 || (struct_size != 0 && struct_size < sizeof(lexbor_avl_node_t))) in lexbor_avl_init()
57 if (struct_size == 0) { in lexbor_avl_init()
58 struct_size = sizeof(lexbor_avl_node_t); in lexbor_avl_init()
64 return lexbor_dobject_init(avl->nodes, chunk_len, struct_size); in lexbor_avl_init()
H A Dplog.h31 lexbor_plog_init(lexbor_plog_t *plog, size_t init_size, size_t struct_size);
H A Dhash.h73 size_t struct_size; member
92 lexbor_hash_init(lexbor_hash_t *hash, size_t table_size, size_t struct_size);
H A Dhash.c120 lexbor_hash_init(lexbor_hash_t *hash, size_t table_size, size_t struct_size) in lexbor_hash_init() argument
138 status = lexbor_dobject_init(hash->entries, chunk_size, struct_size); in lexbor_hash_init()
154 hash->struct_size = struct_size; in lexbor_hash_init()
H A Davl.h45 lexbor_avl_init(lexbor_avl_t *avl, size_t chunk_len, size_t struct_size);
/PHP-8.4/ext/dom/lexbor/lexbor/dom/interfaces/
H A Ddocument.h155 lxb_dom_document_create_struct(lxb_dom_document_t *document, size_t struct_size) in lxb_dom_document_create_struct() argument
157 return lexbor_mraw_calloc(document->mraw, struct_size); in lxb_dom_document_create_struct()
221 size_t struct_size);
H A Ddocument.c498 size_t struct_size) in lxb_dom_document_create_struct_noi() argument
500 return lxb_dom_document_create_struct(document, struct_size); in lxb_dom_document_create_struct_noi()
/PHP-8.4/ext/dom/lexbor/lexbor/html/interfaces/
H A Ddocument.h269 size_t struct_size) in lxb_html_document_create_struct() argument
272 struct_size); in lxb_html_document_create_struct()
327 size_t struct_size);
H A Ddocument.c1338 size_t struct_size) in lxb_html_document_create_struct_noi() argument
1340 return lxb_html_document_create_struct(document, struct_size); in lxb_html_document_create_struct_noi()
/PHP-8.4/ext/sockets/
H A Dconversions.h83 size_t struct_size,
H A Dconversions.c1479 size_t struct_size, in from_zval_run_conversions() argument
1499 structure = ecalloc(1, struct_size); in from_zval_run_conversions()

Completed in 28 milliseconds