Search guides and the APICtrl K
  1. API reference
  2. Formats and wrappers

lv2_atom.h

Walking an LV2 atom sequence a host filled in.

#include <sonore/lv2_atom.h>
On this page

Design notes

The plugin reads one and so does the interface, and they are separate modules that must agree exactly about the layout -- so the walk lives here, where both include it, rather than being written out on each side. It depends on nothing but LV2's own atom header, which is also what lets a test drive it with hostile bytes without building a plugin around it.

The padding is the part worth centralising. An atom event is followed by its body rounded UP to eight bytes, and a reader that forgets the rounding walks into the middle of the next event and reads a size out of somebody's payload. That arithmetic appeared six times before this.

Functions 4

↑↓ to move↵ to openEvery public name in the headers, and every guide