25-06-2014, 11:31 PM
For functions which take arbitrary data and operate on it in a byte-wise fashion, for example, calculating a CRC, which would be the preferred method according to the MISRA guidelines:
which internally converts data to a pointer to uint8_t (with the requisite deviation), or
and would this require an explicit cast to pointer to uint8_t at each calling location? Or would the Exception to 11.3 allow for an implicit conversion?
Code:
uint32_t CRC(size_t length, void * data);
Code:
uint32_t CRC(size_t length, uint8_t * data);
<t></t>