MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / swapPayload

Method swapPayload

json/jsoncpp.cpp:2941–2949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2939}
2940
2941void Value::swapPayload(Value& other) {
2942 ValueType temp = type_;
2943 type_ = other.type_;
2944 other.type_ = temp;
2945 std::swap(value_, other.value_);
2946 int temp2 = allocated_;
2947 allocated_ = other.allocated_;
2948 other.allocated_ = temp2 & 0x1;
2949}
2950
2951void Value::copyPayload(const Value& other) {
2952 releasePayload();

Callers 6

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

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected