MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / swapPayload

Method swapPayload

Source/JSON/jsoncpp.cpp:2618–2626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2616}
2617
2618void Value::swapPayload(Value& other) {
2619 ValueType temp = type_;
2620 type_ = other.type_;
2621 other.type_ = temp;
2622 std::swap(value_, other.value_);
2623 int temp2 = allocated_;
2624 allocated_ = other.allocated_;
2625 other.allocated_ = temp2 & 0x1;
2626}
2627
2628void Value::swap(Value& other) {
2629 swapPayload(other);

Callers 6

readValueMethod · 0.45
readObjectMethod · 0.45
readArrayMethod · 0.45
decodeNumberMethod · 0.45
decodeDoubleMethod · 0.45
decodeStringMethod · 0.45

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected