diff --git a/docs/source/Internals.md b/docs/source/Internals.md index 389a8f9e0..882cde8b7 100644 --- a/docs/source/Internals.md +++ b/docs/source/Internals.md @@ -111,6 +111,13 @@ is 0, that means the field is not present in this object, and the default value is return. Otherwise, the entry is used as offset to the field to be read. +### Unions + +Unions are encoded as the combination of two fields: an enum representing the +union choice and the offset to the actual element. FlatBuffers reserves the +enumeration constant `NONE` (encoded as 0) to mean that the union field is not +set. + ### Strings and Vectors Strings are simply a vector of bytes, and are always