MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / deserialize

Method deserialize

proto/proto_models.cpp:282–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282size_t OrderModel::deserialize(::proto::Order& value) const noexcept
283{
284 if ((this->buffer().offset() + model.fbe_offset() - 4) > this->buffer().size())
285 return 0;
286
287 uint32_t fbe_full_size = *((const uint32_t*)(this->buffer().data() + this->buffer().offset() + model.fbe_offset() - 4));
288 assert((fbe_full_size >= model.fbe_size()) && "Model is broken!");
289 if (fbe_full_size < model.fbe_size())
290 return 0;
291
292 model.get(value);
293 return fbe_full_size;
294}
295
296} // namespace proto
297

Callers

nothing calls this directly

Calls 7

offsetMethod · 0.45
bufferMethod · 0.45
fbe_offsetMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45
fbe_sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected