libbtc
bitcoinclibrary
|
Go to the source code of this file.
Functions | |
void | ser_bytes (cstring *s, const void *p, size_t len) |
void | ser_u16 (cstring *s, uint16_t v_) |
void | ser_u32 (cstring *s, uint32_t v_) |
void | ser_u64 (cstring *s, uint64_t v_) |
void | ser_varlen (cstring *s, uint32_t vlen) |
void | ser_str (cstring *s, const char *s_in, size_t maxlen) |
void | ser_varstr (cstring *s, cstring *s_in) |
void | ser_u256_vector (cstring *s, vector *vec) |
btc_bool | deser_skip (struct const_buffer *buf, size_t len) |
btc_bool | deser_bytes (void *po, struct const_buffer *buf, size_t len) |
btc_bool | deser_u16 (uint16_t *vo, struct const_buffer *buf) |
btc_bool | deser_u32 (uint32_t *vo, struct const_buffer *buf) |
btc_bool | deser_u64 (uint64_t *vo, struct const_buffer *buf) |
btc_bool | deser_varlen (uint32_t *lo, struct const_buffer *buf) |
btc_bool | deser_str (char *so, struct const_buffer *buf, size_t maxlen) |
btc_bool | deser_varstr (cstring **so, struct const_buffer *buf) |
btc_bool | deser_u256_vector (vector **vo, struct const_buffer *buf) |
btc_bool deser_bytes | ( | void * | po, |
struct const_buffer * | buf, | ||
size_t | len | ||
) |
Definition at line 103 of file serialize.c.
References const_buffer::len, and const_buffer::p.
Referenced by btc_script_copy_without_op_codeseperator(), btc_script_get_ops(), deser_str(), deser_u16(), deser_u256(), deser_u32(), deser_u64(), and deser_varlen().
btc_bool deser_skip | ( | struct const_buffer * | buf, |
size_t | len | ||
) |
Definition at line 92 of file serialize.c.
References const_buffer::len, and const_buffer::p.
Referenced by btc_script_copy_without_op_codeseperator(), btc_script_get_ops(), and deser_str().
btc_bool deser_str | ( | char * | so, |
struct const_buffer * | buf, | ||
size_t | maxlen | ||
) |
Definition at line 178 of file serialize.c.
References deser_bytes(), deser_skip(), deser_varlen(), and const_buffer::len.
btc_bool deser_u16 | ( | uint16_t * | vo, |
struct const_buffer * | buf | ||
) |
Definition at line 115 of file serialize.c.
References deser_bytes().
Referenced by btc_script_copy_without_op_codeseperator(), btc_script_get_ops(), and deser_varlen().
btc_bool deser_u256_vector | ( | vector ** | vo, |
struct const_buffer * | buf | ||
) |
Definition at line 230 of file serialize.c.
References deser_u256(), deser_varlen(), vector_add(), vector_free(), and vector_new().
btc_bool deser_u32 | ( | uint32_t * | vo, |
struct const_buffer * | buf | ||
) |
Definition at line 126 of file serialize.c.
References deser_bytes().
Referenced by btc_script_copy_without_op_codeseperator(), btc_script_get_ops(), btc_tx_deserialize(), btc_tx_in_deserialize(), and deser_varlen().
btc_bool deser_u64 | ( | uint64_t * | vo, |
struct const_buffer * | buf | ||
) |
Definition at line 137 of file serialize.c.
References deser_bytes().
Referenced by deser_s64(), and deser_varlen().
btc_bool deser_varlen | ( | uint32_t * | lo, |
struct const_buffer * | buf | ||
) |
Definition at line 148 of file serialize.c.
References deser_bytes(), deser_u16(), deser_u32(), deser_u64(), and const_buffer::len.
Referenced by btc_tx_deserialize(), deser_str(), deser_u256_vector(), and deser_varstr().
btc_bool deser_varstr | ( | cstring ** | so, |
struct const_buffer * | buf | ||
) |
Definition at line 205 of file serialize.c.
References cstr_append_buf(), cstr_free(), cstr_new_sz(), deser_varlen(), const_buffer::len, and const_buffer::p.
Referenced by btc_tx_in_deserialize(), and btc_tx_out_deserialize().
void ser_bytes | ( | cstring * | s, |
const void * | p, | ||
size_t | len | ||
) |
Definition at line 13 of file serialize.c.
References cstr_append_buf().
Referenced by ser_str(), ser_u256(), ser_varlen(), and ser_varstr().
void ser_str | ( | cstring * | s, |
const char * | s_in, | ||
size_t | maxlen | ||
) |
void ser_u16 | ( | cstring * | s, |
uint16_t | v_ | ||
) |
Definition at line 18 of file serialize.c.
References cstr_append_buf().
Referenced by ser_varlen().
Definition at line 79 of file serialize.c.
References vector::len, ser_u256(), ser_varlen(), and vector_idx.
void ser_u32 | ( | cstring * | s, |
uint32_t | v_ | ||
) |
Definition at line 24 of file serialize.c.
References cstr_append_buf().
Referenced by btc_tx_in_serialize(), btc_tx_serialize(), ser_s32(), and ser_varlen().
void ser_u64 | ( | cstring * | s, |
uint64_t | v_ | ||
) |
Definition at line 30 of file serialize.c.
References cstr_append_buf().
Referenced by ser_s64().
void ser_varlen | ( | cstring * | s, |
uint32_t | vlen | ||
) |
Definition at line 36 of file serialize.c.
References ser_bytes(), ser_u16(), and ser_u32().
Referenced by btc_tx_serialize(), ser_str(), ser_u256_vector(), and ser_varstr().
Definition at line 68 of file serialize.c.
References cstring::len, ser_bytes(), ser_varlen(), and cstring::str.
Referenced by btc_tx_in_serialize(), and btc_tx_out_serialize().