_pcp_buffer Struct Reference

A flexible buffer object wich automatically resizes, if neccessary. More...

#include <structs.h>

Public Attributes

char * name
 just for convenience in error messages and the like, so we know which buffer cause trouble More...
 
uint8_t allocated
 marks the buffer as allocated More...
 
size_t blocksize
 the blocksize to use when resizing, also used for initial malloc() More...
 
size_t size
 stores the current allocated size of the object More...
 
size_t offset
 current read position More...
 
size_t end
 current write position, data end. More...
 
uint8_t isstring
 treat as char array/string More...
 
void * buf
 the actual storage buffer More...
 

Detailed Description

A flexible buffer object wich automatically resizes, if neccessary.

Definition at line 272 of file structs.h.

Member Data Documentation

uint8_t _pcp_buffer::allocated

marks the buffer as allocated

Definition at line 274 of file structs.h.

size_t _pcp_buffer::blocksize

the blocksize to use when resizing, also used for initial malloc()

Definition at line 275 of file structs.h.

void* _pcp_buffer::buf

the actual storage buffer

Definition at line 280 of file structs.h.

size_t _pcp_buffer::end

current write position, data end.

maybe less than size.

Definition at line 278 of file structs.h.

uint8_t _pcp_buffer::isstring

treat as char array/string

Definition at line 279 of file structs.h.

char* _pcp_buffer::name

just for convenience in error messages and the like, so we know which buffer cause trouble

Definition at line 273 of file structs.h.

size_t _pcp_buffer::offset

current read position

Definition at line 277 of file structs.h.

size_t _pcp_buffer::size

stores the current allocated size of the object

Definition at line 276 of file structs.h.


The documentation for this struct was generated from the following file: