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 6c8c291559.
This commit is contained in:
engedy 2021-12-01 08:06:19 +01:00 committed by GitHub
parent 0fadaf391d
commit 4f7f6dc301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1074,6 +1074,10 @@ class FlatBufferBuilder {
void SwapBufAllocator(FlatBufferBuilder &other) { void SwapBufAllocator(FlatBufferBuilder &other) {
buf_.swap_allocator(other.buf_); buf_.swap_allocator(other.buf_);
} }
/// @brief The length of a FlatBuffer file header.
static const size_t kFileIdentifierLength =
::flatbuffers::kFileIdentifierLength;
protected: protected:
// You shouldn't really be copying instances of this class. // You shouldn't really be copying instances of this class.