File src/yajl_buf.c


Included Files


Type struct yajl_buf_t

struct yajl_buf_t
struct yajl_buf_t  
   {  
      size_t len;  
      size_t used;  
      unsigned char* data;  
      yajl_alloc_funcs* alloc;  
   }  

Global Function yajl_buf_alloc()

allocate a new buffer

yajl_buf yajl_buf_alloc ( yajl_alloc_funcs* alloc )

Prototyped in: src/yajl_buf.h
Calls: memset()
Called by: yajl_alloc() src/yajl.c
  yajl_gen_alloc() src/yajl_gen.c
  yajl_lex_alloc() src/yajl_lex.c

Global Function yajl_buf_append()

append a number of bytes to the buffer

void yajl_buf_append ( yajl_buf buf, const void* data, size_t len )

Prototyped in: src/yajl_buf.h
Calls: yajl_buf_ensure_available() src/yajl_buf.c
  __assert13(), memcpy()
Called by: yajl_do_parse() src/yajl_parser.c
  yajl_lex_lex() src/yajl_lex.c
  yajl_string_decode() src/yajl_encode.c
Used in: yajl_gen_alloc() src/yajl_gen.c
  yajl_gen_clear() src/yajl_gen.c
  yajl_gen_free() src/yajl_gen.c
  yajl_gen_get_buf() src/yajl_gen.c

Global Function yajl_buf_clear()

empty the buffer

void yajl_buf_clear ( yajl_buf buf )

Prototyped in: src/yajl_buf.h
Called by: yajl_do_parse() src/yajl_parser.c
  yajl_gen_clear() src/yajl_gen.c
  yajl_lex_lex() src/yajl_lex.c

Global Function yajl_buf_data()

get a pointer to the beginning of the buffer

const unsigned char* yajl_buf_data ( yajl_buf buf )

Prototyped in: src/yajl_buf.h
Called by: yajl_do_parse() src/yajl_parser.c
  yajl_gen_get_buf() src/yajl_gen.c
  yajl_lex_comment() src/yajl_lex.c
  yajl_lex_lex() src/yajl_lex.c
  yajl_lex_number() src/yajl_lex.c
  yajl_lex_string() src/yajl_lex.c
  yajl_lex_utf8_char() src/yajl_lex.c

Global Function yajl_buf_free()

free the buffer

void yajl_buf_free ( yajl_buf buf )

Prototyped in: src/yajl_buf.h
Calls: __assert13()
Called by: yajl_free() src/yajl.c
  yajl_gen_config() src/yajl_gen.c
  yajl_gen_free() src/yajl_gen.c
  yajl_lex_free() src/yajl_lex.c

Global Function yajl_buf_len()

get the length of the buffer

size_t yajl_buf_len ( yajl_buf buf )

Prototyped in: src/yajl_buf.h
Called by: yajl_do_parse() src/yajl_parser.c
  yajl_gen_get_buf() src/yajl_gen.c
  yajl_lex_comment() src/yajl_lex.c
  yajl_lex_lex() src/yajl_lex.c
  yajl_lex_number() src/yajl_lex.c
  yajl_lex_peek() src/yajl_lex.c
  yajl_lex_string() src/yajl_lex.c
  yajl_lex_utf8_char() src/yajl_lex.c

Global Function yajl_buf_truncate()

truncate the buffer

void yajl_buf_truncate ( yajl_buf buf, size_t len )

Prototyped in: src/yajl_buf.h
Calls: __assert13()
Called by: yajl_lex_peek() src/yajl_lex.c

Local Function yajl_buf_ensure_available()

static void yajl_buf_ensure_available ( yajl_buf buf, size_t want )
Calls: __assert13()
Called by: yajl_buf_append() src/yajl_buf.c