struct refcnt_buffer

Overview

A memory buffer that keeps track of references to its contents More…

#include <logger_bufs.h>

struct refcnt_buffer {
    // fields

    void* buf;
    size_t len;
    int* refcount;

    // methods

    TAILQ_ENTRY(refcnt_buffer);
};

Detailed Documentation

A memory buffer that keeps track of references to its contents

Fields

void* buf

Pointer to data

size_t len

Length of data

int* refcount

Reference counter

Methods

TAILQ_ENTRY(refcnt_buffer)

Pointers to other buffers