diff options
Diffstat (limited to 'src/lv2_evbuf.c')
-rw-r--r-- | src/lv2_evbuf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lv2_evbuf.c b/src/lv2_evbuf.c index 8fab7f5..6cbffe3 100644 --- a/src/lv2_evbuf.c +++ b/src/lv2_evbuf.c @@ -119,6 +119,14 @@ lv2_evbuf_begin(LV2_Evbuf* evbuf) return iter; } +LV2_Evbuf_Iterator +lv2_evbuf_end(LV2_Evbuf* evbuf) +{ + const size_t size = lv2_evbuf_get_size(evbuf); + const LV2_Evbuf_Iterator iter = { evbuf, lv2_atom_pad_size(size) }; + return iter; +} + bool lv2_evbuf_is_valid(LV2_Evbuf_Iterator iter) { |