MCPcopy Create free account
hub / github.com/cinder/Cinder / swapPayload

Method swapPayload

src/jsoncpp/jsoncpp.cpp:1901–1909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1899}
1900
1901void Value::swapPayload(Value& other) {
1902 ValueType temp = type_;
1903 type_ = other.type_;
1904 other.type_ = temp;
1905 std::swap(value_, other.value_);
1906 int temp2 = allocated_;
1907 allocated_ = other.allocated_;
1908 other.allocated_ = temp2;
1909}
1910
1911void Value::swap(Value& other) {
1912 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.50

Tested by

no test coverage detected