29 Nov
2017
29 Nov
'17
1:58 a.m.
On 29/11/2017 01:57, Richard Hodges wrote:
It gives me the shivers. Binary data could easily have a zero in the last byte.
In theory those should be distinguishable -- char is a distinct type
from unsigned char (even if char is unsigned by default), and
*hopefully* anyone poking binary data at the wire is doing so as an
unsigned char or uint8_t.
In practice, there might be some trouble with people abusing std::string
as if it were std::vector