@brief Reset all the state in this FlatBufferBuilder so it can be reused to construct another buffer.
| 1232 | /// @brief Reset all the state in this FlatBufferBuilder so it can be reused |
| 1233 | /// to construct another buffer. |
| 1234 | void Clear() { |
| 1235 | ClearOffsets(); |
| 1236 | buf_.clear(); |
| 1237 | nested = false; |
| 1238 | finished = false; |
| 1239 | minalign_ = 1; |
| 1240 | if (string_pool) string_pool->clear(); |
| 1241 | } |
| 1242 | |
| 1243 | /// @brief The current size of the serialized buffer, counting from the end. |
| 1244 | /// @return Returns an `uoffset_t` with the current size of the buffer. |