|
Ruby 3.3.6p108 (2024-11-05 revision 75015d4c1f6965b5e85e96fb309f1f2129f933c0)
|
A generic string type that can have various ownership semantics. More...
#include <pm_string.h>
Public Types | |
| enum | { PM_STRING_CONSTANT , PM_STRING_SHARED , PM_STRING_OWNED , PM_STRING_MAPPED } |
| The type of the string. More... | |
Data Fields | |
| const uint8_t * | source |
| A pointer to the start of the string. | |
| size_t | length |
| The length of the string in bytes of memory. | |
| enum pm_string_t:: { ... } | type |
| The type of the string. | |
A generic string type that can have various ownership semantics.
Definition at line 30 of file pm_string.h.
| anonymous enum |
The type of the string.
This field determines how the string should be freed.
Definition at line 38 of file pm_string.h.
| size_t pm_string_t::length |
The length of the string in bytes of memory.
Definition at line 35 of file pm_string.h.
Referenced by pm_string_free().
| const uint8_t* pm_string_t::source |
A pointer to the start of the string.
Definition at line 32 of file pm_string.h.
Referenced by pm_string_ensure_owned(), and pm_string_free().
| enum { ... } pm_string_t::type |
The type of the string.
This field determines how the string should be freed.
Referenced by pm_string_ensure_owned(), pm_string_free(), and pm_string_memsize().