3 ms·
And it's even possible to use std::string as a buffer for binary data including NULs. I won't recommend it, but it works.
by gmueckl 8y ago
And it's even possible to use std::string as a buffer for binary data including NULs. I won't recommend it, but it works.
- saagarjha 8y agoI'd suggest using a std::vector of byte-sized integers for clarity, though there's nothing wrong from a standards point in using a std::string.