MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_runtime_event_batch Struct Reference

#include <runtime.h>

Data Fields

uint32_t event_size
 
const mln_runtime_eventevents
 
size_t event_count
 
const char * messages
 
size_t messages_size
 
size_t remaining_count
 

Detailed Description

A drained batch of runtime events.

A caller zero-initializes this struct, sets size, and passes it to mln_runtime_drain_events(). mln_runtime_event_batch_default() returns such a struct.

Field Documentation

◆ event_count

size_t mln_runtime_event_batch::event_count

Number of events in events.

◆ event_size

uint32_t mln_runtime_event_batch::event_size

Stride of one event in bytes, at least sizeof(mln_runtime_event) in the header a caller compiled against. Index events with this value.

◆ events

const mln_runtime_event* mln_runtime_event_batch::events

Borrowed array of event_count events in queue order. Null when event_count is 0.

◆ messages

const char* mln_runtime_event_batch::messages

Borrowed message arena holding every event's message bytes, each followed by a null terminator. Null when messages_size is 0.

◆ messages_size

size_t mln_runtime_event_batch::messages_size

Number of bytes in messages, including every terminator.

◆ remaining_count

size_t mln_runtime_event_batch::remaining_count

Events still queued for this runtime after this batch. A nonzero value means another drain reports more events.


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