Pack bytes into a 16- or 32-byte variable
| 699 | |
| 700 | // Pack bytes into a 16- or 32-byte variable |
| 701 | uint32_t Helper::pack32(uint8_t c0, uint8_t c1, uint8_t c2, uint8_t c3) { |
| 702 | return (uint32_t) c0 | ((uint32_t) c1 << 8) | ((uint32_t) c2 << 16) | ((uint32_t) c3 << 24); |
| 703 | } |
| 704 | uint16_t Helper::pack16(uint8_t c0, uint8_t c1) { |
| 705 | return (uint32_t) c0 | ((uint32_t) c1 << 8); |
| 706 | } |
nothing calls this directly
no outgoing calls
no test coverage detected