From Xojo Documentation
Closes the stream (and hence the file opened by the stream).
This code backs a BinaryStream with a MemoryBlock that is declared 0-sized:
Var bs As New BinaryStream(mb)
Note that Close was called after the write. It is critical that you call Close after the back or the size of the MemoryBlock is likely to be wrong.