IMemoryStreamFactory Interface
Provides pooled memory streams (via the RecyclableMemoryStream library).
graph BT Type["IMemoryStreamFactory"] class Type type-node Implementing0["MemoryStreamFactory"]-.->Type click Implementing0 "/api/Statiq.Core/MemoryStreamFactory" Implementing1["TestMemoryStreamFactory"]-.->Type click Implementing1 "/api/Statiq.Testing/TestMemoryStreamFactory"

Syntax

public interface IMemoryStreamFactory

Methods

Name Return Value Summary
GetStream() MemoryStream
Retrieve a new MemoryStream object with a default initial capacity.
GetStream(byte[], int, int) MemoryStream
Retrieve a new MemoryStream object with contents copied from the provided buffer. The provided buffer is not wrapped or used after construction.
GetStream(int, bool) MemoryStream
Retrieve a new MemoryStream object with at least the given capacity, possibly using a single continugous underlying buffer.
GetStream(int) MemoryStream
Retrieve a new MemoryStream object with at least the given capacity.
GetStream(string) MemoryStream
Retrieve a new MemoryStream object with the provided string encoded as UTF8.

Extension Methods