MemoryStream.data

Gets the internal buffer of the stream.

Notes: While this function by itself is @safe, usage of this function is unsafe.

This is because the buffer can be reallocated and deallocated during certain usage of the stream, so the slice returned by this function can point to freed/invalid memory, causing a crash (hopefully).

class MemoryStream(Alloc)
@property @nogc nothrow inout
inout(ubyte[])
data
()

Meta