libcbor  0.5.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
Macros | Functions
builder_callbacks.c File Reference
#include "builder_callbacks.h"
#include "unicode.h"
#include <string.h>
#include "../arrays.h"
#include "../bytestrings.h"
#include "../floats_ctrls.h"
#include "../ints.h"
#include "../maps.h"
#include "../strings.h"
#include "../tags.h"

Go to the source code of this file.

Macros

#define CHECK_RES   do { if (res == NULL) { ctx->creation_failed = true; return; } } while (0)
 

Functions

void _cbor_builder_append (cbor_item_t *item, struct _cbor_decoder_context *ctx)
 
void cbor_builder_uint8_callback (void *context, uint8_t value)
 
void cbor_builder_uint16_callback (void *context, uint16_t value)
 
void cbor_builder_uint32_callback (void *context, uint32_t value)
 
void cbor_builder_uint64_callback (void *context, uint64_t value)
 
void cbor_builder_negint8_callback (void *context, uint8_t value)
 
void cbor_builder_negint16_callback (void *context, uint16_t value)
 
void cbor_builder_negint32_callback (void *context, uint32_t value)
 
void cbor_builder_negint64_callback (void *context, uint64_t value)
 
void cbor_builder_byte_string_callback (void *context, cbor_data data, size_t length)
 
void cbor_builder_byte_string_start_callback (void *context)
 
void cbor_builder_string_callback (void *context, cbor_data data, size_t length)
 
void cbor_builder_string_start_callback (void *context)
 
void cbor_builder_array_start_callback (void *context, size_t size)
 
void cbor_builder_indef_array_start_callback (void *context)
 
void cbor_builder_indef_map_start_callback (void *context)
 
void cbor_builder_map_start_callback (void *context, size_t size)
 
void cbor_builder_indef_break_callback (void *context)
 
void cbor_builder_float2_callback (void *context, float value)
 
void cbor_builder_float4_callback (void *context, float value)
 
void cbor_builder_float8_callback (void *context, double value)
 
void cbor_builder_null_callback (void *context)
 
void cbor_builder_undefined_callback (void *context)
 
void cbor_builder_boolean_callback (void *context, bool value)
 
void cbor_builder_tag_callback (void *context, uint64_t value)
 

Macro Definition Documentation

§ CHECK_RES

#define CHECK_RES   do { if (res == NULL) { ctx->creation_failed = true; return; } } while (0)

Definition at line 84 of file builder_callbacks.c.

Function Documentation

§ _cbor_builder_append()

void _cbor_builder_append ( cbor_item_t item,
struct _cbor_decoder_context ctx 
)

Definition at line 19 of file builder_callbacks.c.

§ cbor_builder_array_start_callback()

void cbor_builder_array_start_callback ( void *  context,
size_t  size 
)

Definition at line 251 of file builder_callbacks.c.

§ cbor_builder_boolean_callback()

void cbor_builder_boolean_callback ( void *  context,
bool  value 
)

Definition at line 345 of file builder_callbacks.c.

§ cbor_builder_byte_string_callback()

void cbor_builder_byte_string_callback ( void *  context,
cbor_data  data,
size_t  length 
)

Definition at line 165 of file builder_callbacks.c.

§ cbor_builder_byte_string_start_callback()

void cbor_builder_byte_string_start_callback ( void *  context)

Definition at line 197 of file builder_callbacks.c.

§ cbor_builder_float2_callback()

void cbor_builder_float2_callback ( void *  context,
float  value 
)

Definition at line 303 of file builder_callbacks.c.

§ cbor_builder_float4_callback()

void cbor_builder_float4_callback ( void *  context,
float  value 
)

Definition at line 311 of file builder_callbacks.c.

§ cbor_builder_float8_callback()

void cbor_builder_float8_callback ( void *  context,
double  value 
)

Definition at line 320 of file builder_callbacks.c.

§ cbor_builder_indef_array_start_callback()

void cbor_builder_indef_array_start_callback ( void *  context)

Definition at line 263 of file builder_callbacks.c.

§ cbor_builder_indef_break_callback()

void cbor_builder_indef_break_callback ( void *  context)

Definition at line 291 of file builder_callbacks.c.

§ cbor_builder_indef_map_start_callback()

void cbor_builder_indef_map_start_callback ( void *  context)

Definition at line 271 of file builder_callbacks.c.

§ cbor_builder_map_start_callback()

void cbor_builder_map_start_callback ( void *  context,
size_t  size 
)

Definition at line 279 of file builder_callbacks.c.

§ cbor_builder_negint16_callback()

void cbor_builder_negint16_callback ( void *  context,
uint16_t  value 
)

Definition at line 136 of file builder_callbacks.c.

§ cbor_builder_negint32_callback()

void cbor_builder_negint32_callback ( void *  context,
uint32_t  value 
)

Definition at line 145 of file builder_callbacks.c.

§ cbor_builder_negint64_callback()

void cbor_builder_negint64_callback ( void *  context,
uint64_t  value 
)

Definition at line 155 of file builder_callbacks.c.

§ cbor_builder_negint8_callback()

void cbor_builder_negint8_callback ( void *  context,
uint8_t  value 
)

Definition at line 126 of file builder_callbacks.c.

§ cbor_builder_null_callback()

void cbor_builder_null_callback ( void *  context)

Definition at line 329 of file builder_callbacks.c.

§ cbor_builder_string_callback()

void cbor_builder_string_callback ( void *  context,
cbor_data  data,
size_t  length 
)

Definition at line 206 of file builder_callbacks.c.

§ cbor_builder_string_start_callback()

void cbor_builder_string_start_callback ( void *  context)

Definition at line 243 of file builder_callbacks.c.

§ cbor_builder_tag_callback()

void cbor_builder_tag_callback ( void *  context,
uint64_t  value 
)

Definition at line 353 of file builder_callbacks.c.

§ cbor_builder_uint16_callback()

void cbor_builder_uint16_callback ( void *  context,
uint16_t  value 
)

Definition at line 96 of file builder_callbacks.c.

§ cbor_builder_uint32_callback()

void cbor_builder_uint32_callback ( void *  context,
uint32_t  value 
)

Definition at line 106 of file builder_callbacks.c.

§ cbor_builder_uint64_callback()

void cbor_builder_uint64_callback ( void *  context,
uint64_t  value 
)

Definition at line 116 of file builder_callbacks.c.

§ cbor_builder_uint8_callback()

void cbor_builder_uint8_callback ( void *  context,
uint8_t  value 
)

Definition at line 86 of file builder_callbacks.c.

§ cbor_builder_undefined_callback()

void cbor_builder_undefined_callback ( void *  context)

Definition at line 337 of file builder_callbacks.c.