Lines Matching refs:entry

48 (*lexbor_hash_copy_f)(lexbor_hash_t *hash, lexbor_hash_entry_t *entry,
106 lexbor_hash_insert_by_entry(lexbor_hash_t *hash, lexbor_hash_entry_t *entry,
139 lexbor_hash_copy(lexbor_hash_t *hash, lexbor_hash_entry_t *entry,
143 lexbor_hash_copy_lower(lexbor_hash_t *hash, lexbor_hash_entry_t *entry,
147 lexbor_hash_copy_upper(lexbor_hash_t *hash, lexbor_hash_entry_t *entry,
161 lexbor_hash_entry_str(const lexbor_hash_entry_t *entry) in lexbor_hash_entry_str() argument
163 if (entry->length <= LEXBOR_HASH_SHORT_SIZE) { in lexbor_hash_entry_str()
164 return (lxb_char_t *) entry->u.short_str; in lexbor_hash_entry_str()
167 return entry->u.long_str; in lexbor_hash_entry_str()
171 lexbor_hash_entry_str_set(lexbor_hash_entry_t *entry, in lexbor_hash_entry_str_set() argument
174 entry->length = length; in lexbor_hash_entry_str_set()
177 memcpy(entry->u.short_str, data, length); in lexbor_hash_entry_str_set()
178 return (lxb_char_t *) entry->u.short_str; in lexbor_hash_entry_str_set()
181 entry->u.long_str = data; in lexbor_hash_entry_str_set()
182 return entry->u.long_str; in lexbor_hash_entry_str_set()
186 lexbor_hash_entry_str_free(lexbor_hash_t *hash, lexbor_hash_entry_t *entry) in lexbor_hash_entry_str_free() argument
188 if (entry->length > LEXBOR_HASH_SHORT_SIZE) { in lexbor_hash_entry_str_free()
189 lexbor_mraw_free(hash->mraw, entry->u.long_str); in lexbor_hash_entry_str_free()
192 entry->length = 0; in lexbor_hash_entry_str_free()
202 lexbor_hash_entry_destroy(lexbor_hash_t *hash, lexbor_hash_entry_t *entry) in lexbor_hash_entry_destroy() argument
204 return (lexbor_hash_entry_t *) lexbor_dobject_free(hash->entries, entry); in lexbor_hash_entry_destroy()