Share via


MemoryStream Constructor

Initializes a new non-resizable instance of the MemoryStream class based on the specified byte array.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public MemoryStream (
         byte buffer
)

Parameters

  • buffer
    The array of unsigned bytes from which to create the current stream.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

MemoryStream Class
MemoryStream Members
System.IO Namespace