IMemoryStreamFactory Interface
Provides pooled memory streams (via the RecyclableMemoryStream library).
IMemoryStreamFactory
MemoryStreamFactory
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