• Frank Benkstein's avatar
    make flatbuffers::IsFieldPresent safer (#4988) · ca417426
    Frank Benkstein authored
    Give the vtable offset enum inside each table the name
    "FlatBuffersVTableOffset" and base type voffset_t so it can be used as a
    dependent type in IsFieldPresent. This makes that function slightly
    safer since it prevents calling it with arbitrary, non-table types.
    Now, the only way to use IsFieldPresent incorrectly is to create your
    own type which does not inherit from flatbuffers::Table but has a
    dependent voffset convertible type "FlatBuffersVTableOffset".
    ca417426
Name
Last commit
Last update
..
Attacker.cs Loading commit data...
Attacker.java Loading commit data...
Attacker.php Loading commit data...
BookReader.cs Loading commit data...
BookReader.java Loading commit data...
BookReader.php Loading commit data...
Character.cs Loading commit data...
Character.java Loading commit data...
Character.php Loading commit data...
Movie.cs Loading commit data...
Movie.java Loading commit data...
Movie.php Loading commit data...
Rapunzel.cs Loading commit data...
Rapunzel.java Loading commit data...
Rapunzel.php Loading commit data...
union_vector.fbs Loading commit data...
union_vector_generated.h Loading commit data...
union_vector_generated.js Loading commit data...
union_vector_generated.ts Loading commit data...