Method ToStream
ToStream(Byte[])
Creates a new System.IO.MemoryStream using the byte array as the stream contents.
Declaration
public static MemoryStream ToStream(this byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | The byte array to wrap in a stream. |
Returns
Type | Description |
---|---|
System.IO.MemoryStream | A System.IO.MemoryStream. |