From 6eb351aa82eb7eee4a78a9205cfd56ea9762e1ef Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 20 Oct 2010 02:13:36 +0000 Subject: Rename atom:Dict to atom:Object (more appropriate term since keys are restricted, matches JSON, kinda sorta matches RDF and intended usage). Rename atom:Array to atom:Tuple ("Array" seems to imply homogeneous and constant time indexing, which is not true here). --- ext/atom.lv2/atom.ttl | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'ext/atom.lv2/atom.ttl') diff --git a/ext/atom.lv2/atom.ttl b/ext/atom.lv2/atom.ttl index 9158328..6e08359 100644 --- a/ext/atom.lv2/atom.ttl +++ b/ext/atom.lv2/atom.ttl @@ -142,11 +142,16 @@ vector, e.g.
 uint16_t elem_size = (vector.size - (2 * sizeof(uint16_t))) / vector.count);
 
-Note that it is possible to construct a valid Atom for each element of the -vector, even by an implementation which does not understand type. +Note that it is possible to construct a valid Atom for each element +of the vector, even by an implementation which does not understand +elem_type. + +Note that an Atom is 32-bit aligned by definition, and both the Atom and +Vector headers are 32-bits each, therefore the first element of a Vector is +64-bit aligned. For example, an atom:Vector containing 42 elements of type atom:Int32 looks -like this in memory: +like this in memory (including the Atom header):
 uint16_t atom_type    = uri_map(atom:Vector)
 uint16_t atom_size    = (2 * sizeof(uint16_t)) + (42 * sizeof(int32_t))
@@ -157,12 +162,12 @@ int32_t  contents[42] = ...
 """ .
 
 
-atom:Array a atom:AtomType ;
-	rdfs:label "Array" ;
+atom:Tuple a atom:AtomType ;
+	rdfs:label "Tuple" ;
     rdfs:comment """
 A POD sequence of atoms with varying types and sizes.
 
-The body of an array is simply a series of complete atoms, aligned to
+The body of a tuple is simply a series of complete atoms, aligned to
 32 bits.
 """ .
 
-- 
cgit v1.2.1