Loading...
Searching...
No Matches
Macros | Functions
as_cdt_internal.h File Reference
#include <aerospike/as_msgpack.h>
#include <aerospike/as_cdt_ctx.h>
#include <aerospike/as_operations.h>
+ Include dependency graph for as_cdt_internal.h:

Go to the source code of this file.

Macros

#define as_cdt_begin()
 
#define as_cdt_end(pk)
 
#define as_cmp_error()
 

Functions

bool as_cdt_add_packed (as_packer *pk, as_operations *ops, const char *name, as_operator op_type)
 
bool as_cdt_ctx_from_unpacker (as_cdt_ctx *ctx, as_unpacker *pk)
 
uint32_t as_cdt_ctx_pack (const as_cdt_ctx *ctx, as_packer *pk)
 
void as_cdt_pack_ctx (as_packer *pk, as_cdt_ctx *ctx)
 
void as_cdt_pack_header (as_packer *pk, as_cdt_ctx *ctx, uint16_t command, uint32_t count)
 
void as_cdt_pack_header_flag (as_packer *pk, as_cdt_ctx *ctx, uint16_t command, uint32_t count, uint32_t flag)
 
static void as_pack_byte_string (as_packer *pk, const uint8_t *b, uint32_t len)
 
static void as_pack_string (as_packer *pk, const char *s)
 
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)
 
bool as_unpack_str_init (as_unpacker *pk, char *str, uint32_t max)
 
bool as_unpack_str_new (as_unpacker *pk, char **str, uint32_t max)
 
bool as_val_compare (as_val *v1, as_val *v2)
 

Macro Definition Documentation

◆ as_cdt_begin

#define as_cdt_begin ( )
Value:
{0};\
while (true) {

Definition at line 31 of file as_cdt_internal.h.

◆ as_cdt_end

#define as_cdt_end ( pk)
Value:
if (!(pk)->buffer) {\
(pk)->buffer = cf_malloc((pk)->offset);\
(pk)->capacity = (pk)->offset;\
(pk)->offset = 0;\
(pk)->head = NULL;\
(pk)->tail = NULL;\
continue;\
}\
break;\
}

Definition at line 35 of file as_cdt_internal.h.

◆ as_cmp_error

#define as_cmp_error ( )
Value:
printf("Line %d\n", __LINE__);\
return false;

Definition at line 94 of file as_cdt_internal.h.

Function Documentation

◆ as_cdt_add_packed()

bool as_cdt_add_packed ( as_packer * pk,
as_operations * ops,
const char * name,
as_operator op_type )

◆ as_cdt_ctx_from_unpacker()

bool as_cdt_ctx_from_unpacker ( as_cdt_ctx * ctx,
as_unpacker * pk )

◆ as_cdt_ctx_pack()

uint32_t as_cdt_ctx_pack ( const as_cdt_ctx * ctx,
as_packer * pk )

◆ as_cdt_pack_ctx()

void as_cdt_pack_ctx ( as_packer * pk,
as_cdt_ctx * ctx )

◆ as_cdt_pack_header()

void as_cdt_pack_header ( as_packer * pk,
as_cdt_ctx * ctx,
uint16_t command,
uint32_t count )

◆ as_cdt_pack_header_flag()

void as_cdt_pack_header_flag ( as_packer * pk,
as_cdt_ctx * ctx,
uint16_t command,
uint32_t count,
uint32_t flag )

◆ as_pack_byte_string()

static void as_pack_byte_string ( as_packer * pk,
const uint8_t * b,
uint32_t len )
inlinestatic

Definition at line 77 of file as_cdt_internal.h.

References as_pack_str().

◆ as_pack_string()

static void as_pack_string ( as_packer * pk,
const char * s )
inlinestatic

Definition at line 70 of file as_cdt_internal.h.

References as_pack_str().

◆ as_unpack_bytes_init()

bool as_unpack_bytes_init ( as_unpacker * pk,
uint8_t * b,
uint32_t max )

◆ as_unpack_bytes_new()

bool as_unpack_bytes_new ( as_unpacker * pk,
uint8_t ** bytes,
uint32_t * bytes_size,
uint32_t max )

◆ as_unpack_str_init()

bool as_unpack_str_init ( as_unpacker * pk,
char * str,
uint32_t max )

◆ as_unpack_str_new()

bool as_unpack_str_new ( as_unpacker * pk,
char ** str,
uint32_t max )

◆ as_val_compare()

bool as_val_compare ( as_val * v1,
as_val * v2 )