| 45 | } |
| 46 | |
| 47 | uint32_t ReadUint32(const unsigned char* buffer, unsigned int offset) |
| 48 | { |
| 49 | ARM_PIPE_ASSERT(buffer); |
| 50 | |
| 51 | uint32_t value = 0; |
| 52 | value = static_cast<uint32_t>(buffer[offset]); |
| 53 | value |= static_cast<uint32_t>(buffer[offset + 1]) << 8; |
| 54 | value |= static_cast<uint32_t>(buffer[offset + 2]) << 16; |
| 55 | value |= static_cast<uint32_t>(buffer[offset + 3]) << 24; |
| 56 | return value; |
| 57 | } |
| 58 | |
| 59 | uint16_t ReadUint16(const unsigned char* buffer, unsigned int offset) |
| 60 | { |
no outgoing calls
no test coverage detected