On Sun Nov 20 09:22:06 2022 +0000, Nikolay Sivov wrote:
Why do we need it here, but not in WriteRaw() ?
With WriteRawChars() we have two constraints
i) The string itself ii) The number of characters the user requested to write.
When correctly used, the two constraints should both fail or, the length constraint should fail but the string constraint shouldn't fail before the length constraint because that would mean someone tried to write `'\0'` which is invalid and hence the check.
On the other hand, we only have one constraint with WriteRaw()