Add a backwards-compatible version of VerifyBuffer() (#4201)

This commit is contained in:
Hadriel Kaplan
2017-03-08 11:25:37 -05:00
committed by Wouter van Oortmerssen
parent ac106e835c
commit 15bf626191

View File

@@ -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_);
}