Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_string_view_t Struct Reference

Non-owning string view over bytes that need not be NUL-terminated. More...

#include <base.h>

Data Fields

const char * data
 First byte of the string, or NULL when the view is empty.
loomc_host_size_t size
 Number of bytes in data.

Detailed Description

Non-owning string view over bytes that need not be NUL-terminated.

Lifetime
A string view never owns data. The API receiving the view documents whether it copies the bytes or how long the caller must keep the bytes alive.

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