@brief Reset all the state in this FlatBufferBuilder so it can be reused to construct another buffer.
| 1307 | /// @brief Reset all the state in this FlatBufferBuilder so it can be reused |
| 1308 | /// to construct another buffer. |
| 1309 | void Clear() { |
| 1310 | ClearOffsets(); |
| 1311 | buf_.clear(); |
| 1312 | nested = false; |
| 1313 | finished = false; |
| 1314 | minalign_ = 1; |
| 1315 | if (string_pool) string_pool->clear(); |
| 1316 | } |
| 1317 | |
| 1318 | /// @brief The current size of the serialized buffer, counting from the end. |
| 1319 | /// @return Returns an `uoffset_t` with the current size of the buffer. |
no test coverage detected