struct te_dbuf

Overview

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.

Fields

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

See TE_DBUF_DEFAULT_GROW_FACTOR.