[This is preliminary documentation and is subject to change.]

Create a new unmanaged memory stream with storage for a certain number of bytes of data. The length of the stream will be set to bytes, but the contents of the stream after initialization are undefined.

Namespace:  MPI
Assembly:  MPI (in MPI.dll)
Version: 0.6.0.0 (0.6.0.0)

Syntax

C#
public UnmanagedMemoryStream(
	long bytes,
	bool defaultMemoryFromMPI
)
Visual Basic (Declaration)
Public Sub New ( _
	bytes As Long, _
	defaultMemoryFromMPI As Boolean _
)
Visual C++
public:
UnmanagedMemoryStream(
	long long bytes, 
	bool defaultMemoryFromMPI
)

Parameters

bytes
Type: System..::.Int64
The number of bytes in the new stream.
defaultMemoryFromMPI
Type: System..::.Boolean
Whether this stream should first try to allocate its memory from MPI. If MPI cannot provide memory, or if this parameter is false, memory will be allocated from the unmanaged heap.

See Also