Does a buffer size check before adding to the buffer

If the buffer is already at `buffer_size` then appending to it would be `buffer_size+1`. So the newly created event would then go out in the next `flush()`.

It really doesn't matter that much in the big picture, but at least we know that we're always within our own defined limit.