BlockAllocatedMemoryStream(Byte) Constructor

Initializes a new instance of BlockAllocatedMemoryStream from specified buffer.

Definition

Namespace: Gemstone.IO
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.141 -- Release Build+8fc1477299d57116e2a4f3cb8dfe059f814b239b
public BlockAllocatedMemoryStream(
	byte[] buffer
)

Parameters

buffer  Byte
Initial buffer to copy into stream.

Remarks

Unlike MemoryStream, the BlockAllocatedMemoryStream will not use the provided buffer as its backing buffer. The buffer will be copied into internally managed reusable memory buffers. Subsequently, the notion of a non-expandable stream is not supported.

Exceptions

ArgumentNullExceptionbuffer is null.

See Also