Ruby  3.4.0dev (2024-11-05 revision 348a53415339076afc4a02fcd09f3ae36e9c4c61)
Data Fields
pm_buffer_t Struct Reference

A pm_buffer_t is a simple memory buffer that stores data in a contiguous block of memory. More...

#include <pm_buffer.h>

Data Fields

size_t length
 The length of the buffer in bytes. More...
 
size_t capacity
 The capacity of the buffer in bytes that has been allocated. More...
 
char * value
 A pointer to the start of the buffer. More...
 

Detailed Description

A pm_buffer_t is a simple memory buffer that stores data in a contiguous block of memory.

Definition at line 22 of file pm_buffer.h.

Field Documentation

◆ capacity

size_t pm_buffer_t::capacity

The capacity of the buffer in bytes that has been allocated.

Definition at line 27 of file pm_buffer.h.

Referenced by pm_buffer_init_capacity().

◆ length

size_t pm_buffer_t::length

◆ value

char* pm_buffer_t::value

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