Click or drag to resize

BlockAllocatedMemoryStream(Byte) Constructor

Initializes a new instance of BlockAllocatedMemoryStream from specified buffer.

Namespace: GSF.IO
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.242-beta+5de70bd1c87865d409ebc16b8886196644c0c750
Syntax
public BlockAllocatedMemoryStream(
	byte[] buffer
)
View Source

Parameters

buffer  Byte
Initial buffer to copy into stream.
Exceptions
ExceptionCondition
ArgumentNullExceptionbuffer is null.
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.
See Also