如何将无符号整数缓冲区传递给期望无符号字符缓冲区的函数?该函数将操作并更新缓冲区。接下来是我想要实现的伪代码。
unsigned int* inputBuffer = (unsigned int*)malloc(bufferSize);
function(inputBuffer); <- How to perform this correctly?
bool function(unsigned char *buffer)
{
...operate and update values of buffer
}