Takes ownership of the memory in the memory stream, causing the memory stream to reset to its initial state.
The slice that used to belong to the memory stream, the owner of the slice is responsible for freeing it.
See Implementation
Takes ownership of the memory in the memory stream, causing the memory stream to reset to its initial state.