A helper function for copyTo, that uses a buffer placed on the stack.
The size to give the buffer.
The stream to copy the data to.
See Implementation
A helper function for copyTo, that uses a buffer placed on the stack.