Oops, you're right, `+ buf.length` should never have been there. The `reserve()` trick is pretty clever; I never realised that the function returns the actual allocated size. I'll do that. (There's no point in *not* improving the code when it's so easily done, even if it's not very important in this case.)