#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "yajl_buf.h"
Go to the source code of this file.
#define YAJL_BUF_INIT_SIZE 2048 |
Definition at line 56 of file yajl_buf.c.
63 memset((
void *) b, 0,
sizeof(
struct yajl_buf_t));
#define YA_MALLOC(afs, sz)
void yajl_buf_append |
( |
yajl_buf |
buf, |
|
|
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
Definition at line 75 of file yajl_buf.c.
77 yajl_buf_ensure_available(buf, len);
80 memcpy(buf->
data + buf->
used, data, len);
#define assert(exp)
Declare that a condition should be true.
const unsigned char* yajl_buf_data |
( |
yajl_buf |
buf | ) |
|
Definition at line 68 of file yajl_buf.c.
#define assert(exp)
Declare that a condition should be true.
#define YA_FREE(afs, ptr)
void yajl_buf_truncate |
( |
yajl_buf |
buf, |
|
|
size_t |
len |
|
) |
| |
Definition at line 103 of file yajl_buf.c.
#define assert(exp)
Declare that a condition should be true.