Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
Loading...
Searching...
No Matches
srn_src_location_t Struct Reference

#include <core.h>

Data Fields

uint16_t buffer_id
 ID of the source buffer that is registered with the source manager.
uint32_t offset
 Byte offset of the form's first byte in the buffer.
uint32_t len
 Length of the form in bytes.

Detailed Description

Definition at line 53 of file core.h.

Field Documentation

◆ buffer_id

uint16_t srn_src_location_t::buffer_id

ID of the source buffer that is registered with the source manager.

If we ever need to increase this limit we have to adjust the guard at the source_manager.c where we check the buffer id to be less that UINT16_MAX

Definition at line 57 of file core.h.

◆ len

uint32_t srn_src_location_t::len

Length of the form in bytes.

Same width as offset, so any span the reader can measure fits.

Definition at line 62 of file core.h.

◆ offset

uint32_t srn_src_location_t::offset

Byte offset of the form's first byte in the buffer.

Definition at line 59 of file core.h.


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