createMemoryStream

Creates a new stream with the given data array as its contents.

@safe nothrow
createMemoryStream
(
ubyte[] data
,
bool writable = true
,
size_t initial_size = size_t.max
)

Parameters

data ubyte[]

The data array

writable bool

Flag that controls whether the data array may be changed

initial_size size_t

The initial value that size returns - the file can grow up to data.length in size

Meta