struct te_dbuf


Dynamically allocated buffer. More…

#include <te_dbuf.h>

struct te_dbuf {
    // fields

    uint8_t* ptr;
    size_t size;
    size_t len;
    uint8_t grow_factor;

Detailed Documentation

Dynamically allocated buffer.


uint8_t* ptr

Pointer to the buffer.

size_t size

Size of the buffer.

size_t len

Length of actual data.

uint8_t grow_factor

Buffer extra size in percentages. I.e. size = required_size * (1+grow_factor/100.).