MCPcopy Create free account
hub / github.com/Illumina/paragraph / swapPayload

Method swapPayload

external/jsoncpp/jsoncpp.cpp:2995–3003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2993}
2994
2995void Value::swapPayload(Value& other) {
2996 ValueType temp = type_;
2997 type_ = other.type_;
2998 other.type_ = temp;
2999 std::swap(value_, other.value_);
3000 int temp2 = allocated_;
3001 allocated_ = other.allocated_;
3002 other.allocated_ = temp2 & 0x1;
3003}
3004
3005void Value::copyPayload(const Value& other) {
3006 type_ = other.type_;

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