字节缓冲区应该签名吗
语言处理方式上的细微差异.传统对待它的方式有huge种不同.
char
=ASCII(或UTF-8,但符号性会妨碍)textual数据unsigned char
=字节signed char
=很少使用And there is code that relies on such a distinction. Just a week or two ago I encountered a bug where JPEG data was getting corrupted because it was being passed to the char*
version of our Base64 encode function — which "helpfully" replaced all the invalid UTF-8 in the "string". Changing to BYTE
aka unsigned char
was all it took to fix it.