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

Method deserialize

proto/test_models.cpp:906–918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904}
905
906size_t StructSimpleModel::deserialize(::test::StructSimple& value) const noexcept
907{
908 if ((this->buffer().offset() + model.fbe_offset() - 4) > this->buffer().size())
909 return 0;
910
911 uint32_t fbe_full_size = *((const uint32_t*)(this->buffer().data() + this->buffer().offset() + model.fbe_offset() - 4));
912 assert((fbe_full_size >= model.fbe_size()) && "Model is broken!");
913 if (fbe_full_size < model.fbe_size())
914 return 0;
915
916 model.get(value);
917 return fbe_full_size;
918}
919
920} // namespace test
921

Callers 12

onReceiveMethod · 0.45
onReceiveMethod · 0.45
onReceiveMethod · 0.45
onReceiveMethod · 0.45
deserialize.cppFile · 0.45
test_enums.cppFile · 0.45
test_extending.cppFile · 0.45
mainFunction · 0.45
mainFunction · 0.45

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