Wouter van Oortmerssen
1bba4fd9ea
Fixed reflection.h not modifying certain table configurations.
...
It would write 64bits offsets instead of 32bit ones, and update
the vtable pointer before the fields were processed.
Change-Id: I0c0fa942bbd3b42839294f5653ba8fa048612624
Tested: on Linux.
2016-07-25 15:01:37 -07:00
Wouter van Oortmerssen
958fc6ec49
Added support for easy string pooling.
...
Change-Id: I790cf681c1bffff800d77afb0e2f908d1c827679
Tested: on Linux.
Bug: 26186542
2016-03-07 12:58:36 -08:00
Chris Pickett
e1e7dfa625
Fixed warning building in VS2012
...
src\reflection.cpp(297): warning C4267: 'argument' : conversion from 'size_t' to 'flatbuffers::uoffset_t', possible loss of data
sizeof() was promoting the type from uoffset_t to size_t.
2016-01-06 12:45:24 -06:00
Wouter van Oortmerssen
1891537236
Fixed reflection setting string not changing size field.
...
Change-Id: I3c3e88a79667d1733b6c47e43b55d8b2604ca8e2
Tested: on Linux.
2015-12-21 16:20:03 -08:00
Jon Simantov
dac63a227e
Fix missing break statement in SetAnyValueS case.
...
Causing SetAnyValueS to treat all scalars as integers.
Change-Id: Ib467b255e7f32a1478180a91e65def31676399eb
2015-08-05 16:06:47 -07:00
Wouter van Oortmerssen
ad84b5b8fa
Fixed AddFlatBuffer using wrong buffer length.
...
Also made the Xcode project link.
Tested: on OS X.
2015-08-03 17:39:47 -07:00
Wouter van Oortmerssen
7101224d86
Reworked reflection.h to be more general.
...
e.g. support generic reading/writing from structs/vectors etc.
Change-Id: I2eb6e24db088a72da444d5c8df7e506e53d5bc2d
Tested: on Linux.
Bug: 22660837
2015-08-03 16:42:05 -07:00