A flexible buffer object wich automatically resizes, if neccessary.
More...
#include <buffer.h>
|
| char * | name |
| | just for convenience in error messages and the like, so we know which buffer cause trouble
|
| |
| uint8_t | allocated |
| | marks the buffer as allocated
|
| |
| size_t | blocksize |
| | the blocksize to use when resizing, also used for initial malloc()
|
| |
| size_t | size |
| | stores the current allocated size of the object
|
| |
| size_t | offset |
| | current read position
|
| |
| size_t | end |
| | current write position, data end.
|
| |
| uint8_t | isstring |
| | treat as char array/string
|
| |
| void * | buf |
| | the actual storage buffer
|
| |
A flexible buffer object wich automatically resizes, if neccessary.
Definition at line 50 of file buffer.h.
| uint8_t _pcp_buffer::allocated |
marks the buffer as allocated
Definition at line 52 of file buffer.h.
| size_t _pcp_buffer::blocksize |
the blocksize to use when resizing, also used for initial malloc()
Definition at line 53 of file buffer.h.
the actual storage buffer
Definition at line 58 of file buffer.h.
current write position, data end.
maybe less than size.
Definition at line 56 of file buffer.h.
| uint8_t _pcp_buffer::isstring |
treat as char array/string
Definition at line 57 of file buffer.h.
just for convenience in error messages and the like, so we know which buffer cause trouble
Definition at line 51 of file buffer.h.
| size_t _pcp_buffer::offset |
current read position
Definition at line 55 of file buffer.h.
stores the current allocated size of the object
Definition at line 54 of file buffer.h.
The documentation for this struct was generated from the following file: