Noodle
Loading...
Searching...
No Matches
NoodleBuffer Struct Reference

Grow-only float buffer managed by Noodle. More...

#include <noodle_buffer.h>

Public Attributes

float * data
size_t capacity

Detailed Description

Grow-only float buffer managed by Noodle.

NoodleBuffer is intentionally simple:

  • data is either NULL or memory allocated by Noodle.
  • capacity is expressed in float elements, not bytes.
  • the buffer grows when required, but never shrinks automatically.
  • memory is released only when noodle_buffer_free() is called.

External/user-owned memory should remain as a raw float pointer and should not be stored inside NoodleBuffer.

Member Data Documentation

◆ capacity

size_t NoodleBuffer::capacity

◆ data

float* NoodleBuffer::data

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