* Decode a big-endian length len vector of (unsigned char) into a length * len/4 vector of (uint32_t). Assumes len is a multiple of 4. */
| 69 | * len/4 vector of (uint32_t). Assumes len is a multiple of 4. |
| 70 | */ |
| 71 | static void |
| 72 | be32dec_vect(uint32_t *dst, const unsigned char *src, size_t len) |
| 73 | { |
| 74 | size_t i; |
| 75 | |
| 76 | for (i = 0; i < len / 4; i++) |
| 77 | dst[i] = be32dec(src + i * 4); |
| 78 | } |
| 79 | |
| 80 | #endif /* BYTE_ORDER != BIG_ENDIAN */ |
| 81 |
no test coverage detected