libbtc
bitcoinclibrary
|
Go to the source code of this file.
Functions | |
static btc_bool | cstr_alloc_min_sz (cstring *s, size_t sz) |
cstring * | cstr_new_sz (size_t sz) |
cstring * | cstr_new_buf (const void *buf, size_t sz) |
cstring * | cstr_new (const char *init_str) |
void | cstr_free (cstring *s, btc_bool free_buf) |
btc_bool | cstr_resize (cstring *s, size_t new_sz) |
btc_bool | cstr_append_buf (cstring *s, const void *buf, size_t sz) |
btc_bool | cstr_equal (const cstring *a, const cstring *b) |
btc_bool | cstr_erase (cstring *s, size_t pos, ssize_t len) |
Definition at line 10 of file cstr.c.
References cstring::alloc, cstring::len, and cstring::str.
Referenced by cstr_append_buf(), cstr_new_sz(), and cstr_resize().
Definition at line 106 of file cstr.c.
References cstr_alloc_min_sz(), cstring::len, and cstring::str.
Referenced by btc_script_append_op(), btc_script_append_pushdata(), btc_script_build_multisig(), btc_script_copy_without_op_codeseperator(), btc_tx_in_copy(), btc_tx_out_copy(), btc_tx_sighash(), cstr_append_c(), deser_varstr(), ser_bytes(), ser_u16(), ser_u32(), and ser_u64().
Definition at line 69 of file cstr.c.
References cstring::str.
Referenced by btc_tx_hash(), btc_tx_in_free(), btc_tx_out_free(), btc_tx_sighash(), and deser_varstr().
cstring* cstr_new | ( | const char * | init_str | ) |
cstring* cstr_new_buf | ( | const void * | buf, |
size_t | sz | ||
) |
Definition at line 47 of file cstr.c.
References cstr_new_sz(), cstring::len, and cstring::str.
Referenced by cstr_new().
cstring* cstr_new_sz | ( | size_t | sz | ) |
Definition at line 33 of file cstr.c.
References cstr_alloc_min_sz().
Referenced by btc_tx_add_p2pkh_hash160_out(), btc_tx_add_p2sh_hash160_out(), btc_tx_hash(), btc_tx_in_copy(), btc_tx_out_copy(), btc_tx_sighash(), cstr_new(), cstr_new_buf(), and deser_varstr().
Definition at line 81 of file cstr.c.
References cstr_alloc_min_sz(), buffer::len, cstring::len, and cstring::str.
Referenced by btc_script_build_multisig(), btc_script_build_p2pkh(), btc_script_build_p2sh(), and btc_tx_sighash().