This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | WsBufferRec |
Typedefs | |
| typedef WsBufferRec | WsBuffer |
Functions | |
| void | ws_buffer_init (WsBuffer *buffer) |
| void | ws_buffer_uninit (WsBuffer *buffer) |
| WsBuffer * | ws_buffer_alloc (void) |
| 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) |
|
|
Definition at line 83 of file wsbuffer.h. Referenced by buffer_to_int(), read_float_from_exp(), read_float_from_point(), ws_bc_encode(), ws_buffer_alloc(), ws_buffer_append(), ws_buffer_append_space(), ws_buffer_free(), ws_buffer_init(), ws_buffer_len(), ws_buffer_ptr(), ws_buffer_steal(), ws_buffer_uninit(), ws_encode_buffer(), and ws_yy_lex(). |
|
|
Definition at line 89 of file wsbuffer.c. References ws_calloc(), and WsBuffer.
|
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 102 of file wsbuffer.c. References data, ws_buffer_append_space(), WsBool, and WsBuffer. 00103 {
00104 unsigned char *p;
00105
00106 if (!ws_buffer_append_space(buffer, &p, len))
00107 return WS_FALSE;
00108
00109 memcpy(p, data, len);
00110
00111 return WS_TRUE;
00112 }
|
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 115 of file wsbuffer.c. References WsBufferRec::data, WsBufferRec::len, size, ws_realloc(), WsBool, and WsBuffer. 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(). 00116 {
00117 unsigned char *ndata = ws_realloc(buffer->data, buffer->len + size);
00118
00119 if (ndata == NULL)
00120 return WS_FALSE;
00121
00122 buffer->data = ndata;
00123
00124 if (p)
00125 *p = buffer->data + buffer->len;
00126
00127 buffer->len += size;
00128
00129 return WS_TRUE;
00130 }
|
Here is the call graph for this function:

|
|
Definition at line 95 of file wsbuffer.c. References WsBufferRec::data, ws_free(), and WsBuffer.
|
Here is the call graph for this function:

|
|
Definition at line 74 of file wsbuffer.c. References WsBufferRec::data, WsBufferRec::len, and WsBuffer. Referenced by compile_stream(), ws_bc_encode(), and ws_yy_lex().
|
|
|
Definition at line 139 of file wsbuffer.c. References WsBufferRec::len, and WsBuffer. Referenced by compile_stream(), ws_bc_encode(), and ws_yy_lex(). 00140 {
00141 return buffer->len;
00142 }
|
|
|
Definition at line 133 of file wsbuffer.c. References WsBufferRec::data, and WsBuffer. Referenced by buffer_to_int(), compile_stream(), read_float_from_exp(), and ws_bc_encode(). 00134 {
00135 return buffer->data;
00136 }
|
|
|
Definition at line 145 of file wsbuffer.c. References WsBufferRec::data, WsBufferRec::len, and WsBuffer. 00146 {
00147 unsigned char *p = buffer->data;
00148
00149 buffer->data = NULL;
00150 buffer->len = 0;
00151
00152 return p;
00153 }
|
|
|
Definition at line 81 of file wsbuffer.c. References WsBufferRec::data, WsBufferRec::len, ws_free(), and WsBuffer. Referenced by compile_stream(), ws_bc_encode(), and ws_yy_lex().
|
Here is the call graph for this function:
