vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function createMemoryStream

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

MemoryStream createMemoryStream (
  ubyte[] data,
  bool writable = true,
  ulong initial_size = 18446744073709551615LU
) nothrow @safe;

Parameters

NameDescription
data The data array
writable Flag that controls whether the data array may be changed
initial_size The initial value that size returns - the file can grow up to data.length in size
Authors

Sönke Ludwig

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.