Ruby 3.3.5p100 (2024-09-03 revision ef084cc8f4958c1b6e4ead99136631bef6d8ddba)
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.
 
size_t capacity
 The capacity of the buffer in bytes that has been allocated.
 
char * value
 A pointer to the start of the buffer.
 

Detailed Description

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

Definition at line 21 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 26 of file pm_buffer.h.

Referenced by pm_buffer_init_capacity().

◆ length

size_t pm_buffer_t::length

The length of the buffer in bytes.

Definition at line 23 of file pm_buffer.h.

Referenced by pm_buffer_append_zeroes(), pm_buffer_concat(), pm_buffer_init_capacity(), pm_buffer_length(), and pm_serialize_content().

◆ value

char* pm_buffer_t::value

A pointer to the start of the buffer.

Definition at line 29 of file pm_buffer.h.

Referenced by pm_buffer_append_zeroes(), pm_buffer_concat(), pm_buffer_free(), pm_buffer_init_capacity(), pm_buffer_value(), and pm_serialize_content().


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