mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 05:38:06 +00:00
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:
@@ -1075,6 +1075,10 @@ class FlatBufferBuilder {
|
|||||||
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.
|
||||||
FlatBufferBuilder(const FlatBufferBuilder &);
|
FlatBufferBuilder(const FlatBufferBuilder &);
|
||||||
|
|||||||
Reference in New Issue
Block a user