|
Ruby 4.1.0dev (2026-10-27 revision ee55edef0d1f32704d7dfd37c935f9d2c8a55bb1)
|
A view of a sequence of bytes owned by someone else. More...
#include "prism/compiler/exported.h"#include "prism/compiler/nonnull.h"#include <stddef.h>#include <stdint.h>

Go to the source code of this file.
Data Structures | |
| struct | pm_string_t |
| A view of a sequence of bytes. More... | |
Functions | |
| PRISM_EXPORTED_FUNCTION void | pm_string_init (pm_string_t *string, const uint8_t *source, size_t length) PRISM_NONNULL(1) |
| Initialize a string that views the given bytes. | |
| PRISM_EXPORTED_FUNCTION size_t | pm_string_length (const pm_string_t *string) PRISM_NONNULL(1) |
| Returns the length associated with the string. | |
| PRISM_EXPORTED_FUNCTION const uint8_t * | pm_string_source (const pm_string_t *string) PRISM_NONNULL(1) |
| Returns the start pointer associated with the string. | |
A view of a sequence of bytes owned by someone else.
Definition in file stringy.h.
| PRISM_EXPORTED_FUNCTION void pm_string_init | ( | pm_string_t * | string, |
| const uint8_t * | source, | ||
| size_t | length | ||
| ) |
| PRISM_EXPORTED_FUNCTION size_t pm_string_length | ( | const pm_string_t * | string | ) |
| PRISM_EXPORTED_FUNCTION const uint8_t * pm_string_source | ( | const pm_string_t * | string | ) |