MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / Clear

Function Clear

native/thirdpart/flatbuffers/flatbuffers.h:1234–1241  ·  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

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.

Callers 1

ResetFunction · 0.70

Calls 1

ClearOffsetsFunction · 0.85

Tested by

no test coverage detected