From 15bf626191b1bcab2dc87330406f238585b1bc2a Mon Sep 17 00:00:00 2001 From: Hadriel Kaplan Date: Wed, 8 Mar 2017 11:25:37 -0500 Subject: [PATCH] Add a backwards-compatible version of VerifyBuffer() (#4201) --- include/flatbuffers/flatbuffers.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index c3531d411..9f7601cd8 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -1487,6 +1487,10 @@ class Verifier FLATBUFFERS_FINAL_CLASS { } // Verify this whole buffer, starting with root type T. + template bool VerifyBuffer() { + return VerifyBuffer(nullptr); + } + template bool VerifyBuffer(const char *identifier) { return VerifyBufferFromStart(identifier, buf_); }