MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / swapPayload

Method swapPayload

edrav2/eprj/jsoncpp/src/lib_json/json_value.cpp:500–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500void Value::swapPayload(Value& other) {
501 ValueType temp = type_;
502 type_ = other.type_;
503 other.type_ = temp;
504 std::swap(value_, other.value_);
505 int temp2 = allocated_;
506 allocated_ = other.allocated_;
507 other.allocated_ = temp2 & 0x1;
508}
509
510void Value::copyPayload(const Value& other) {
511 releasePayload();

Callers 7

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

Calls 1

swapFunction · 0.50

Tested by

no test coverage detected