mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 06:31:37 +00:00
Public accessor for buffer size of flexbuffers::Builder
Change-Id: Iff7895aebeba9c2940e26a3edbdf2d3f1b0d9b17
This commit is contained in:
@@ -802,6 +802,11 @@ class Builder FLATBUFFERS_FINAL_CLASS {
|
|||||||
return buf_;
|
return buf_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Size of the buffer. Does not include unfinished values.
|
||||||
|
size_t GetSize() const {
|
||||||
|
return buf_.size();
|
||||||
|
}
|
||||||
|
|
||||||
// Reset all state so we can re-use the buffer.
|
// Reset all state so we can re-use the buffer.
|
||||||
void Clear() {
|
void Clear() {
|
||||||
buf_.clear();
|
buf_.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user