mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-05 13:08:58 +00:00
Add a backwards-compatible version of VerifyBuffer() (#4201)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
ac106e835c
commit
15bf626191
@@ -1487,6 +1487,10 @@ class Verifier FLATBUFFERS_FINAL_CLASS {
|
||||
}
|
||||
|
||||
// Verify this whole buffer, starting with root type T.
|
||||
template<typename T> bool VerifyBuffer() {
|
||||
return VerifyBuffer<T>(nullptr);
|
||||
}
|
||||
|
||||
template<typename T> bool VerifyBuffer(const char *identifier) {
|
||||
return VerifyBufferFromStart<T>(identifier, buf_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user