From 4f7f6dc301f5ffb9765b055d48324dc7629abd5a Mon Sep 17 00:00:00 2001 From: engedy Date: Wed, 1 Dec 2021 08:06:19 +0100 Subject: [PATCH] Restore FlatBufferBuilder::kFileIdentifierLength. (#6960) Restore flatbuffers::FlatBufferBuilder::kFileIdentifierLength, which was a documented part of the public API, but the identifier was lost during the refactoring effected by comment commit 6c8c291559053f90a35c138499053449a40e3b9a. --- include/flatbuffers/flatbuffer_builder.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/flatbuffers/flatbuffer_builder.h b/include/flatbuffers/flatbuffer_builder.h index ce40f7b09..8be4efbe9 100644 --- a/include/flatbuffers/flatbuffer_builder.h +++ b/include/flatbuffers/flatbuffer_builder.h @@ -1074,6 +1074,10 @@ class FlatBufferBuilder { void SwapBufAllocator(FlatBufferBuilder &other) { buf_.swap_allocator(other.buf_); } + + /// @brief The length of a FlatBuffer file header. + static const size_t kFileIdentifierLength = + ::flatbuffers::kFileIdentifierLength; protected: // You shouldn't really be copying instances of this class.