MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / swapPayload

Method swapPayload

src/share/jsoncpp/jsoncpp.cpp:2963–2971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2961}
2962
2963void Value::swapPayload(Value& other) {
2964 ValueType temp = type_;
2965 type_ = other.type_;
2966 other.type_ = temp;
2967 std::swap(value_, other.value_);
2968 int temp2 = allocated_;
2969 allocated_ = other.allocated_;
2970 other.allocated_ = temp2 & 0x1;
2971}
2972
2973void Value::swap(Value& other) {
2974 swapPayload(other);

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