Include a SizePrefixed..HasIdentifier for c++. (#6871)

* Include a SizePrefixed..HasIdentifier for c++.

* Add updated generated code.
This commit is contained in:
Justin T Conroy
2022-01-28 22:52:32 -06:00
committed by GitHub
parent dbbaeac85c
commit 19920db39f
10 changed files with 53 additions and 0 deletions

View File

@@ -946,6 +946,11 @@ inline bool ScalarStuffBufferHasIdentifier(const void *buf) {
buf, ScalarStuffIdentifier());
}
inline bool SizePrefixedScalarStuffBufferHasIdentifier(const void *buf) {
return flatbuffers::BufferHasIdentifier(
buf, ScalarStuffIdentifier(), true);
}
inline bool VerifyScalarStuffBuffer(
flatbuffers::Verifier &verifier) {
return verifier.VerifyBuffer<optional_scalars::ScalarStuff>(ScalarStuffIdentifier());