MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / swapPayload

Method swapPayload

src/jsoncpp.cpp:2917–2925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2915}
2916
2917void Value::swapPayload(Value& other) {
2918 ValueType temp = type_;
2919 type_ = other.type_;
2920 other.type_ = temp;
2921 std::swap(value_, other.value_);
2922 int temp2 = allocated_;
2923 allocated_ = other.allocated_;
2924 other.allocated_ = temp2 & 0x1;
2925}
2926
2927void Value::swap(Value& other) {
2928 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