summaryrefslogtreecommitdiff
path: root/docs/source/Schemas.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/Schemas.md')
-rw-r--r--docs/source/Schemas.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/source/Schemas.md b/docs/source/Schemas.md
index 4f7bd728..58bedae6 100644
--- a/docs/source/Schemas.md
+++ b/docs/source/Schemas.md
@@ -114,6 +114,27 @@ of same-size data where a `reinterpret_cast` would give you a desirable result,
e.g. you could change a `uint` to an `int` if no values in current data use the
high bit yet.
+### Arrays
+
+Arrays are a convenience short-hand for a fixed-length collection of elements.
+Arrays can be used to replace the following schema:
+
+ struct Vec3 {
+ x:float;
+ y:float;
+ z:float;
+ }
+
+with the following schema:
+
+ struct Vec3 {
+ v:[float:3];
+ }
+
+Both representations are binary equivalent.
+
+Arrays are currently only supported in a `struct`.
+
### (Default) Values
Values are a sequence of digits. Values may be optionally followed by a decimal