|
static uint16_t | lv2_event_pad_size (uint16_t size) |
| Pad a size to 64 bits (for event sizes) More...
|
|
static void | lv2_event_buffer_reset (LV2_Event_Buffer *buf, uint16_t stamp_type, uint8_t *data) |
| Initialize (empty, reset..) an existing event buffer. More...
|
|
static LV2_Event_Buffer * | lv2_event_buffer_new (uint32_t capacity, uint16_t stamp_type) |
| Allocate a new, empty event buffer. More...
|
|
static bool | lv2_event_begin (LV2_Event_Iterator *iter, LV2_Event_Buffer *buf) |
| Reset an iterator to point to the start of buf. More...
|
|
static bool | lv2_event_is_valid (LV2_Event_Iterator *iter) |
| Check if iter is valid. More...
|
|
static bool | lv2_event_increment (LV2_Event_Iterator *iter) |
| Advance iter forward one event. More...
|
|
static LV2_Event * | lv2_event_get (LV2_Event_Iterator *iter, uint8_t **data) |
| Dereference an event iterator (get the event currently pointed at). More...
|
|
static bool | lv2_event_write (LV2_Event_Iterator *iter, uint32_t frames, uint32_t subframes, uint16_t type, uint16_t size, const uint8_t *data) |
| Write an event at iter. More...
|
|
static uint8_t * | lv2_event_reserve (LV2_Event_Iterator *iter, uint32_t frames, uint32_t subframes, uint16_t type, uint16_t size) |
| Reserve space for an event in the buffer and return a pointer to the memory where the caller can write the event data, or NULL if there is not enough room in the buffer. More...
|
|
static bool | lv2_event_write_event (LV2_Event_Iterator *iter, const LV2_Event *ev, const uint8_t *data) |
| Write an event at iter. More...
|
|
Helper functions for the LV2 Event extension http://lv2plug.in/ns/ext/event.
These functions are provided for convenience only, use of them is not required for supporting lv2ev (i.e. the events extension is defined by the raw buffer format described in lv2_event.h and NOT by this API).
Note that these functions are all static inline which basically means: do not take the address of these functions.