libbtc
bitcoinclibrary
|
Go to the source code of this file.
Functions | |
vector * | vector_new (size_t res, void(*free_f)(void *)) |
static void | vector_free_data (vector *vec) |
void | vector_free (vector *vec, btc_bool free_array) |
static btc_bool | vector_grow (vector *vec, size_t min_sz) |
ssize_t | vector_find (vector *vec, void *data) |
btc_bool | vector_add (vector *vec, void *data) |
void | vector_remove_range (vector *vec, size_t pos, size_t len) |
void | vector_remove_idx (vector *vec, size_t pos) |
btc_bool | vector_remove (vector *vec, void *data) |
btc_bool | vector_resize (vector *vec, size_t newsz) |
Definition at line 113 of file vector.c.
References vector::alloc, vector::data, vector::len, and vector_grow().
Referenced by btc_script_get_ops(), btc_tx_add_p2pkh_hash160_out(), btc_tx_add_p2sh_hash160_out(), btc_tx_copy(), btc_tx_deserialize(), and deser_u256_vector().
ssize_t vector_find | ( | vector * | vec, |
void * | data | ||
) |
Definition at line 101 of file vector.c.
References vector::data, and vector::len.
Referenced by vector_remove().
Definition at line 71 of file vector.c.
References vector_free_data().
Referenced by btc_tx_copy(), btc_tx_free(), btc_tx_sighash(), and deser_u256_vector().
|
static |
Definition at line 51 of file vector.c.
References vector::alloc, vector::data, vector::elem_free_f, and vector::len.
Referenced by vector_free().
Definition at line 83 of file vector.c.
References vector::alloc, and vector::data.
Referenced by vector_add(), and vector_resize().
vector* vector_new | ( | size_t | res, |
void(*)(void *) | free_f | ||
) |
Definition at line 31 of file vector.c.
References vector::alloc, vector::data, and vector::elem_free_f.
Referenced by btc_tx_copy(), btc_tx_new(), btc_tx_sighash(), and deser_u256_vector().
void vector_remove_idx | ( | vector * | vec, |
size_t | pos | ||
) |
Definition at line 139 of file vector.c.
References vector_remove_range().
Referenced by vector_remove().
void vector_remove_range | ( | vector * | vec, |
size_t | pos, | ||
size_t | len | ||
) |
Definition at line 124 of file vector.c.
References vector::data, vector::elem_free_f, const_buffer::len, and vector::len.
Referenced by btc_tx_sighash(), and vector_remove_idx().
Definition at line 154 of file vector.c.
References vector::data, vector::elem_free_f, const_buffer::len, vector::len, and vector_grow().
Referenced by btc_tx_sighash().