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