Respect shared attribute in Parser (#5885)

Respects the 'shared' field attribute when reading data with Parser.
This commit is contained in:
Mika Raento
2020-05-04 20:33:11 +03:00
committed by GitHub
parent ff1c78233d
commit 6e9f5d9810
2 changed files with 10 additions and 5 deletions

View File

@@ -859,7 +859,7 @@ class Parser : public ParserState {
const std::string &name, const Type &type,
FieldDef **dest);
FLATBUFFERS_CHECKED_ERROR ParseField(StructDef &struct_def);
FLATBUFFERS_CHECKED_ERROR ParseString(Value &val);
FLATBUFFERS_CHECKED_ERROR ParseString(Value &val, bool use_string_pooling);
FLATBUFFERS_CHECKED_ERROR ParseComma();
FLATBUFFERS_CHECKED_ERROR ParseAnyValue(Value &val, FieldDef *field,
size_t parent_fieldn,