GetStream(IMemoryStreamFactory, byte[]) 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
IMemoryStreamFactoryExtensions

Syntax

public static MemoryStream GetStream(this IMemoryStreamFactory factory, byte[] buffer)

Remarks

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

Parameters

Name Type Description
factory IMemoryStreamFactory The memory stream factory.
buffer byte[] The byte buffer to copy data from.

Return Value

Type Description
MemoryStream A MemoryStream.