3 ms·
I really enjoy reading such articles that focus on the details of a topic that at first would seem trivial and boring, but actually turns out to be far more int
by userbinator 11y ago
I really enjoy reading such articles that focus on the details of a topic that at first would seem trivial and boring, but actually turns out to be far more interesting.
If we start getting too close to the end of our “real” input buffer, we can just copy the remaining bytes over to a small temp buffer
You can also just make the input buffer slightly larger that required, so the "padding" is always present at the end and no copying/extra logic is required at all.