aboutsummaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorMyrice <qqlddg@gmail.com>2020-03-12 08:32:29 -0700
committerGitHub <noreply@github.com>2020-03-12 08:32:29 -0700
commit9954e09ab7c19509a39703c572241af62a7c0499 (patch)
tree9700f064a851075038a040cb892fe932fa4ff194 /docs/source
parent95a21327fca5d1544b70fa6f32773828f940efd2 (diff)
downloadflatbuffers-9954e09ab7c19509a39703c572241af62a7c0499.tar.gz
[C++] Generate code for vector force_align attribute. (#5796)
* [Flatbuffer] Generate code for force_align with CreateXDirect and Pack functions. * Fixed Visual Studio 10.0 compile error for std::to_string. * Fixed Visual Studio 10.0 compile error for std::to_string.
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/Schemas.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/source/Schemas.md b/docs/source/Schemas.md
index bd37f418..bd119b0b 100644
--- a/docs/source/Schemas.md
+++ b/docs/source/Schemas.md
@@ -345,6 +345,9 @@ Current understood attributes:
Note: currently not guaranteed to have an effect when used with
`--object-api`, since that may allocate objects at alignments less than
what you specify with `force_align`.
+- `force_align: size` (on a vector): force the alignment of this vector to be
+ something different than what the element size would normally dictate.
+ Note: Now only work for generated C++ code.
- `bit_flags` (on an unsigned enum): the values of this field indicate bits,
meaning that any unsigned value N specified in the schema will end up
representing 1<<N, or if you don't specify values at all, you'll get