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

Function Swap

native/thirdpart/flatbuffers/flatbuffers.h:1210–1221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1208 // clang-format on
1209
1210 void Swap(FlatBufferBuilder &other) {
1211 using std::swap;
1212 buf_.swap(other.buf_);
1213 swap(num_field_loc, other.num_field_loc);
1214 swap(max_voffset_, other.max_voffset_);
1215 swap(nested, other.nested);
1216 swap(finished, other.finished);
1217 swap(minalign_, other.minalign_);
1218 swap(force_defaults_, other.force_defaults_);
1219 swap(dedup_vtables_, other.dedup_vtables_);
1220 swap(string_pool, other.string_pool);
1221 }
1222
1223 ~FlatBufferBuilder() {
1224 if (string_pool) delete string_pool;

Callers 5

MessageBuilderMethod · 0.85
MessageBuilderClass · 0.85
SwapMethod · 0.85
FlatBufferBuilderFunction · 0.85
flatbuffers.hFile · 0.85

Calls 2

swapFunction · 0.70
swapMethod · 0.45

Tested by

no test coverage detected