13 const struct buffer* a = a_;
14 const struct buffer* b = b_;
18 return memcmp(a->
p, b->
p, a->
len) == 0;
23 struct buffer* buf = struct_buffer;
34 buf = malloc(
sizeof(*buf));
38 buf->
p = malloc(data_len);
42 memcpy(buf->
p, data, data_len);
struct buffer * buffer_copy(const void *data, size_t data_len)
void buffer_free(void *struct_buffer)
btc_bool buffer_equal(const void *a_, const void *b_)