MCPcopy Create free account
hub / github.com/COVESA/vsomeip / deserialize_u32

Method deserialize_u32

implementation/security/src/policy.cpp:268–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268bool policy::deserialize_u32(const byte_t*& _data, uint32_t& _size, uint32_t& _value) const {
269
270 if (_size < sizeof(uint32_t))
271 return false;
272
273 _value = bithelper::read_uint32_be(_data);
274
275 _data += sizeof(uint32_t);
276 _size -= static_cast<uint32_t>(sizeof(uint32_t));
277
278 return true;
279}
280
281bool policy::serialize(std::vector<byte_t>& _data) const {
282

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected