Ruby
3.4.0dev (2024-11-22 revision 37a72b0150ec36b4ea27175039afc28c62207b0c)
|
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... | |
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.
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().
size_t pm_buffer_t::length |
The length of the buffer in bytes.
Definition at line 24 of file pm_buffer.h.
Referenced by pm_buffer_append_zeroes(), pm_buffer_clear(), pm_buffer_concat(), pm_buffer_index(), pm_buffer_init_capacity(), pm_buffer_insert(), pm_buffer_length(), pm_buffer_prepend_string(), pm_buffer_rstrip(), and pm_serialize_content().
char* pm_buffer_t::value |
A pointer to the start of the buffer.
Definition at line 30 of file pm_buffer.h.
Referenced by pm_buffer_append_zeroes(), pm_buffer_concat(), pm_buffer_free(), pm_buffer_index(), pm_buffer_init_capacity(), pm_buffer_insert(), pm_buffer_prepend_string(), pm_buffer_rstrip(), pm_buffer_value(), and pm_serialize_content().