MCPcopy Create free account
hub / github.com/PlayFab/gsdk / swapPayload

Method swapPayload

cpp/cppsdk/jsoncpp.cpp:2938–2946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2936}
2937
2938void Value::swapPayload(Value& other) {
2939 ValueType temp = type_;
2940 type_ = other.type_;
2941 other.type_ = temp;
2942 std::swap(value_, other.value_);
2943 int temp2 = allocated_;
2944 allocated_ = other.allocated_;
2945 other.allocated_ = temp2 & 0x1;
2946}
2947
2948void Value::copyPayload(const Value& other) {
2949 releasePayload();

Callers 6

readValueMethod · 0.80
readObjectMethod · 0.80
readArrayMethod · 0.80
decodeNumberMethod · 0.80
decodeDoubleMethod · 0.80
decodeStringMethod · 0.80

Calls 1

swapFunction · 0.85

Tested by

no test coverage detected