|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <runtime.h>
Data Fields | |
| uint32_t | event_size |
| const mln_runtime_event * | events |
| size_t | event_count |
| const char * | messages |
| size_t | messages_size |
| size_t | remaining_count |
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.
| size_t mln_runtime_event_batch::event_count |
Number of events in events.
| 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.
| const mln_runtime_event* mln_runtime_event_batch::events |
Borrowed array of event_count events in queue order. Null when event_count is 0.
| 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.
| size_t mln_runtime_event_batch::messages_size |
Number of bytes in messages, including every terminator.
| 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.