pub unsafe extern "C" fn aws_hash_table_create(
    map: *mut aws_hash_table,
    key: *const c_void,
    p_elem: *mut *mut aws_hash_element,
    was_created: *mut c_int
) -> c_int
Expand description

Attempts to locate an element at key. If no such element was found, creates a new element, with value initialized to NULL. In either case, a pointer to the element is placed in *p_elem.

If was_created is non-NULL, *was_created is set to 0 if an existing element was found, or 1 is a new element was created.

Returns AWS_OP_SUCCESS if an item was found or created. Raises AWS_ERROR_OOM if hash table expansion was required and memory allocation failed.