|
Ruby 4.1.0dev (2026-03-28 revision 634707a7255f132eb486eaf57473925c288ef7bd)
|
A wrapper around a contiguous block of allocated memory. More...
#include "prism/compiler/exported.h"#include "prism/compiler/nodiscard.h"#include "prism/compiler/nonnull.h"#include <stddef.h>

Go to the source code of this file.
Typedefs | |
| typedef struct pm_buffer_t | pm_buffer_t |
| A wrapper around a contiguous block of allocated memory. | |
Functions | |
| PRISM_EXPORTED_FUNCTION PRISM_NODISCARD pm_buffer_t * | pm_buffer_new (void) |
| Allocate and initialize a new buffer. | |
| PRISM_EXPORTED_FUNCTION void | pm_buffer_free (pm_buffer_t *buffer) PRISM_NONNULL(1) |
| Free both the memory held by the buffer and the buffer itself. | |
| PRISM_EXPORTED_FUNCTION char * | pm_buffer_value (const pm_buffer_t *buffer) PRISM_NONNULL(1) |
| Return the value of the buffer. | |
| PRISM_EXPORTED_FUNCTION size_t | pm_buffer_length (const pm_buffer_t *buffer) PRISM_NONNULL(1) |
| Return the length of the buffer. | |
A wrapper around a contiguous block of allocated memory.
Definition in file buffer.h.
| typedef struct pm_buffer_t pm_buffer_t |
| PRISM_EXPORTED_FUNCTION void pm_buffer_free | ( | pm_buffer_t * | buffer | ) |
| PRISM_EXPORTED_FUNCTION size_t pm_buffer_length | ( | const pm_buffer_t * | buffer | ) |
| PRISM_EXPORTED_FUNCTION PRISM_NODISCARD pm_buffer_t * pm_buffer_new | ( | void | ) |
| PRISM_EXPORTED_FUNCTION char * pm_buffer_value | ( | const pm_buffer_t * | buffer | ) |