31 #define as_cdt_begin() \
35 #define as_cdt_end(pk) \
37 (pk)->buffer = cf_malloc((pk)->offset);\
38 (pk)->capacity = (pk)->offset;\
72 uint32_t len = (uint32_t)strlen(s);
94 #define as_cmp_error() \
95 printf("Line %d\n", __LINE__);\
bool as_unpack_str_new(as_unpacker *pk, char **str, uint32_t max)
void as_cdt_pack_ctx(as_packer *pk, as_cdt_ctx *ctx)
static void as_pack_string(as_packer *pk, const char *s)
bool as_cdt_ctx_from_unpacker(as_cdt_ctx *ctx, as_unpacker *pk)
bool as_cdt_add_packed(as_packer *pk, as_operations *ops, const char *name, as_operator op_type)
bool as_unpack_bytes_init(as_unpacker *pk, uint8_t *b, uint32_t max)
bool as_unpack_bytes_new(as_unpacker *pk, uint8_t **bytes, uint32_t *bytes_size, uint32_t max)
int as_pack_str(as_packer *pk, const uint8_t *buf, uint32_t sz)
static void as_pack_byte_string(as_packer *pk, const uint8_t *b, uint32_t len)
void as_cdt_pack_header_flag(as_packer *pk, as_cdt_ctx *ctx, uint16_t command, uint32_t count, uint32_t flag)
uint32_t as_cdt_ctx_pack(const as_cdt_ctx *ctx, as_packer *pk)
void as_cdt_pack_header(as_packer *pk, as_cdt_ctx *ctx, uint16_t command, uint32_t count)
bool as_val_compare(as_val *v1, as_val *v2)
bool as_unpack_str_init(as_unpacker *pk, char *str, uint32_t max)