MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Clear

Function Clear

Libs/flatbuffers/flatbuffers.h:1309–1316  ·  view source on GitHub ↗

@brief Reset all the state in this FlatBufferBuilder so it can be reused to construct another buffer.

Source from the content-addressed store, hash-verified

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.

Callers 1

ResetFunction · 0.70

Calls 2

ClearOffsetsFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected