MCPcopy Create free account
hub / github.com/chronoxor/CppServer / verify_fields

Method verify_fields

proto/simple_models.cpp:70–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool FieldModel<::simple::SimpleRequest>::verify_fields(size_t fbe_struct_size) const noexcept
71{
72 size_t fbe_current_size = 4 + 4;
73
74 if ((fbe_current_size + id.fbe_size()) > fbe_struct_size)
75 return true;
76 if (!id.verify())
77 return false;
78 fbe_current_size += id.fbe_size();
79
80 if ((fbe_current_size + Message.fbe_size()) > fbe_struct_size)
81 return true;
82 if (!Message.verify())
83 return false;
84 fbe_current_size += Message.fbe_size();
85
86 return true;
87}
88
89size_t FieldModel<::simple::SimpleRequest>::get_begin() const noexcept
90{

Callers

nothing calls this directly

Calls 2

fbe_sizeMethod · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected