• Wouter van Oortmerssen's avatar
    Make string/vector field serialization order not depend on optimizer. · f575b02f
    Wouter van Oortmerssen authored
    Multiple calls of e.g. CreateString inside a call to a CreateTable
    could cause those strings to end up in different locations in the
    wire format, since order or argument evaluation is undefined.
    
    This is allowed by the FlatBuffer format, but it is not helpful,
    especially when debugging the contents of binaries, or comparing
    against a "golden" binary for tests etc.
    
    Now making sure that all the CreateTableDirect calls first serialize
    sub strings/vectors before calling CreateTable.
    
    Also made similar changes to the serialization of "binary schemas".
    
    Change-Id: I5747c4038b37a0d400aca2bc592bec751cf5c172
    f575b02f
Name
Last commit
Last update
.appveyor Loading commit data...
.github Loading commit data...
.travis Loading commit data...
CMake Loading commit data...
android Loading commit data...
conan Loading commit data...
dart Loading commit data...
docs Loading commit data...
go Loading commit data...
grpc Loading commit data...
include/flatbuffers Loading commit data...
java/com/google/flatbuffers Loading commit data...
js Loading commit data...
lobster Loading commit data...
lua Loading commit data...
net/FlatBuffers Loading commit data...
php Loading commit data...
python Loading commit data...
reflection Loading commit data...
rust/flatbuffers Loading commit data...
samples Loading commit data...
src Loading commit data...
tests Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
BUILD Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
WORKSPACE Loading commit data...
appveyor.yml Loading commit data...
composer.json Loading commit data...
conanfile.py Loading commit data...
package.json Loading commit data...
pom.xml Loading commit data...
readme.md Loading commit data...