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

Method deserialize

proto/protoex_models.cpp:314–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314size_t OrderModel::deserialize(::protoex::Order& value) const noexcept
315{
316 if ((this->buffer().offset() + model.fbe_offset() - 4) > this->buffer().size())
317 return 0;
318
319 uint32_t fbe_full_size = *((const uint32_t*)(this->buffer().data() + this->buffer().offset() + model.fbe_offset() - 4));
320 assert((fbe_full_size >= model.fbe_size()) && "Model is broken!");
321 if (fbe_full_size < model.fbe_size())
322 return 0;
323
324 model.get(value);
325 return fbe_full_size;
326}
327
328} // namespace protoex
329

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