Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include "wsint.h"
Go to the source code of this file.
Functions | |
void | ws_buffer_init (WsBuffer *buffer) |
void | ws_buffer_uninit (WsBuffer *buffer) |
WsBuffer * | ws_buffer_alloc () |
void | ws_buffer_free (WsBuffer *buffer) |
WsBool | ws_buffer_append (WsBuffer *buffer, unsigned char *data, size_t len) |
WsBool | ws_buffer_append_space (WsBuffer *buffer, unsigned char **p, size_t size) |
unsigned char * | ws_buffer_ptr (WsBuffer *buffer) |
size_t | ws_buffer_len (WsBuffer *buffer) |
unsigned char * | ws_buffer_steal (WsBuffer *buffer) |
WsBuffer* ws_buffer_alloc | ( | void | ) |
Definition at line 102 of file wsbuffer.c.
References ws_buffer_append_space(), WS_FALSE, and WS_TRUE.
Definition at line 115 of file wsbuffer.c.
References WsBufferRec::data, WsBufferRec::len, size, WS_FALSE, ws_realloc(), and WS_TRUE.
Referenced by buffer_to_int(), read_float_from_exp(), read_float_from_point(), ws_bc_encode(), ws_buffer_append(), ws_encode_buffer(), and ws_yy_lex().
void ws_buffer_free | ( | WsBuffer * | buffer | ) |
void ws_buffer_init | ( | WsBuffer * | buffer | ) |
Definition at line 74 of file wsbuffer.c.
References WsBufferRec::data, and WsBufferRec::len.
Referenced by compile_stream(), ws_bc_encode(), and ws_yy_lex().
size_t ws_buffer_len | ( | WsBuffer * | buffer | ) |
Definition at line 139 of file wsbuffer.c.
References WsBufferRec::len.
Referenced by compile_stream(), ws_asm_linearize(), ws_bc_encode(), and ws_yy_lex().
unsigned char* ws_buffer_ptr | ( | WsBuffer * | buffer | ) |
Definition at line 133 of file wsbuffer.c.
References WsBufferRec::data.
Referenced by buffer_to_int(), compile_stream(), read_float_from_exp(), and ws_bc_encode().
unsigned char* ws_buffer_steal | ( | WsBuffer * | buffer | ) |
void ws_buffer_uninit | ( | WsBuffer * | buffer | ) |
Definition at line 81 of file wsbuffer.c.
References WsBufferRec::data, WsBufferRec::len, and ws_free().
Referenced by compile_stream(), ws_bc_encode(), and ws_yy_lex().