MemoryStream.this

Takes ownership of an existing buffer.

  1. this(size_t reserved)
  2. this(ubyte[] buffer)
    class MemoryStream
    @nogc nothrow @safe
    this
    (
    ref ubyte[] buffer
    )

Parameters

buffer ubyte[]

The buffer to take ownership of, the original buffer gets reset to its initial state.

Meta