mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-20 02:15:42 +00:00
Include a SizePrefixed..HasIdentifier for c++. (#6871)
* Include a SizePrefixed..HasIdentifier for c++. * Add updated generated code.
This commit is contained in:
@@ -470,6 +470,11 @@ inline bool ArrayTableBufferHasIdentifier(const void *buf) {
|
||||
buf, ArrayTableIdentifier());
|
||||
}
|
||||
|
||||
inline bool SizePrefixedArrayTableBufferHasIdentifier(const void *buf) {
|
||||
return flatbuffers::BufferHasIdentifier(
|
||||
buf, ArrayTableIdentifier(), true);
|
||||
}
|
||||
|
||||
inline bool VerifyArrayTableBuffer(
|
||||
flatbuffers::Verifier &verifier) {
|
||||
return verifier.VerifyBuffer<MyGame::Example::ArrayTable>(ArrayTableIdentifier());
|
||||
|
||||
Reference in New Issue
Block a user