| 474 | } |
| 475 | |
| 476 | static bool ReadU16(const uint8_t* data, uint32_t size, uint32_t* offset, uint16_t* out) |
| 477 | { |
| 478 | if (*offset + 2 > size) |
| 479 | return false; |
| 480 | *out = (uint16_t) ((data[*offset] << 8) | data[*offset + 1]); |
| 481 | *offset += 2; |
| 482 | return true; |
| 483 | } |
| 484 | |
| 485 | static bool ReadU32(const uint8_t* data, uint32_t size, uint32_t* offset, uint32_t* out) |
| 486 | { |
no outgoing calls
no test coverage detected