GetStream(byte[], int, int) Method
Retrieve a new MemoryStream object with contents copied from the provided buffer. The provided buffer is not wrapped or used after construction.
Namespace
Statiq.Common
Containing Type
IMemoryStreamFactory

Syntax

MemoryStream GetStream(byte[] buffer, int offset, int count)

Remarks

The new stream's position is set to the beginning of the stream when returned.

Parameters

Name Type Description
buffer byte[] The byte buffer to copy data from.
offset int The offset from the start of the buffer to copy from.
count int The number of bytes to copy from the buffer.

Return Value

Type Description
MemoryStream A MemoryStream.