| 253 | } |
| 254 | |
| 255 | bool 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 | |
| 268 | bool policy::deserialize_u32(const byte_t*& _data, uint32_t& _size, uint32_t& _value) const { |
| 269 |
nothing calls this directly
no outgoing calls
no test coverage detected