A helper function for copyTo, that uses a buffer allocated by the GC.
The stream to copy the data to.
The size to give the buffer.
See Implementation
A helper function for copyTo, that uses a buffer allocated by the GC.