Commit 15bf6261 authored by Hadriel Kaplan's avatar Hadriel Kaplan Committed by Wouter van Oortmerssen

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

parent ac106e83
......@@ -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_);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment