| 266 | } |
| 267 | |
| 268 | bool 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 | |
| 281 | bool policy::serialize(std::vector<byte_t>& _data) const { |
| 282 |
nothing calls this directly
no outgoing calls
no test coverage detected