Decodes input (u8) into output (u32). Assumes len is a multiple of 4. */
| 276 | a multiple of 4. |
| 277 | */ |
| 278 | static void Decode(u32* output, u8* input, u32 len) |
| 279 | { |
| 280 | u32 i, j; |
| 281 | |
| 282 | for (i = 0, j = 0; j < len; i++, j += 4) |
| 283 | output[i] = ((u32)input[j]) | (((u32)input[j+1]) << 8) | |
| 284 | (((u32)input[j+2]) << 16) | (((u32)input[j+3]) << 24); |
| 285 | } |