Ruby 4.1.0dev (2026-03-01 revision d68e4be1873e364c5ee24ed112bce4bc86e3a406)
Data Fields
pm_line_offset_list_t Struct Reference

A list of offsets of the start of lines in a string. More...

#include <pm_line_offset_list.h>

Data Fields

size_t size
 The number of offsets in the list.
 
size_t capacity
 The capacity of the list that has been allocated.
 
uint32_t * offsets
 The list of offsets.
 

Detailed Description

A list of offsets of the start of lines in a string.

The offsets are assumed to be sorted/inserted in ascending order.

Definition at line 28 of file pm_line_offset_list.h.

Field Documentation

◆ capacity

size_t pm_line_offset_list_t::capacity

The capacity of the list that has been allocated.

Definition at line 33 of file pm_line_offset_list.h.

Referenced by pm_line_offset_list_append(), pm_line_offset_list_free(), and pm_line_offset_list_init().

◆ offsets

uint32_t* pm_line_offset_list_t::offsets

◆ size

size_t pm_line_offset_list_t::size

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