MemoryStream.take

Takes ownership of the memory in the memory stream, causing the memory stream to reset to its initial state.

class MemoryStream
@nogc nothrow @safe final
ubyte[]
take
()

Return Value

Type: ubyte[]

The slice that used to belong to the memory stream, the owner of the slice is responsible for freeing it.

Meta