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

Non-owning view over immutable bytes. More...

#include <base.h>

Data Fields

const uint8_t * data
 First byte of the span, or NULL when the span is empty.
loomc_host_size_t data_length
 Number of bytes in data.

Detailed Description

Non-owning view over immutable bytes.

Lifetime
A byte span never owns data. The API receiving the span 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: