From d2fa4f8292a50b47864d561c33ced39c55c89254 Mon Sep 17 00:00:00 2001
From: David Robillard
For example, "Hello" in English:
-+struct LV2_Atom { uint16_t type = uri_to_id(atom:Literal); uint16_t size = 14; @@ -139,7 +139,7 @@ uint32_t lang = uri_to_id("http://lexvo.org/id/term/en"); char str[] = "Hello";and French: -+struct LV2_Atom { uint16_t type = uri_to_id(atom:Literal); uint16_t size = 16; @@ -149,7 +149,7 @@ uint32_t lang = uri_to_id("http://lexvo.org/id/term/fr"); char str[] = "Bonjour";or a Turtle string:
-+struct LV2_Atom { uint16_t type = uri_to_id(atom:Literal); uint16_t size = 64; @@ -196,7 +196,7 @@ href="#Atom">Atom type, i.e. the size of each element is the vector'sFor example, an atom:Vector containing 42 elements of type atom:Float looks like this in memory:
-+struct LV2_Atom { uint16_t type = uri_to_id(atom:Vector); uint16_t size = sizeof(LV2_Atom) + sizeof(LV2_Atom_Vector) + (42 * sizeof(float); -- cgit v1.2.1