4 ms·
From the article: "One important consequence of always reading four bytes is that the caller must zero-pad the buffer to at least four bytes. In practice, this
by userbinator 9y ago
From the article:
"One important consequence of always reading four bytes is that the caller must zero-pad the buffer to at least four bytes. In practice, this means padding the entire buffer with three bytes in case the last character is a single byte."
In other words, both the byte-by-byte and dord-at-a-time code assume none of the bytes being read will be at an invalid address.
- Dylan16807 9y agoOh, sorry, I was confused about what exactly you were replacing.