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

Method deserialize_u16

implementation/security/src/policy.cpp:255–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255bool policy::deserialize_u16(const byte_t*& _data, uint32_t& _size, uint16_t& _value) const {
256
257 if (_size < sizeof(uint16_t))
258 return false;
259
260 _value = bithelper::read_uint16_be(_data);
261
262 _data += sizeof(uint16_t);
263 _size -= static_cast<uint16_t>(sizeof(uint16_t));
264
265 return true;
266}
267
268bool policy::deserialize_u32(const byte_t*& _data, uint32_t& _size, uint32_t& _value) const {
269

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected