MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / deserialize

Method deserialize

include/Suscan/Object.h:128–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 }
127
128 void
129 deserialize(
130 std::string const &url,
131 std::vector<char> const &data)
132 {
133 suscan_object_t *object = nullptr;
134
135 SU_ATTEMPT(object = suscan_object_from_xml(
136 url.c_str(),
137 data.data(),
138 data.size()));
139
140 if (!this->isBorrowed()) {
141 if (!this->isHollow())
142 suscan_object_destroy(this->instance);
143 } else {
144 this->borrowed = false;
145 }
146
147 this->instance = object;
148 }
149
150 std::string
151 getClass(void) const

Callers

nothing calls this directly

Calls 4

isBorrowedMethod · 0.95
isHollowMethod · 0.95
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected