Finish writing into a streaming buffer.
Subsequent calls to PutData will fail, while attempts to fetch data from the buffer will return EOF unless there is still data available.