Provides pooled memory streams (via the RecyclableMemoryStream library).
- Namespace
- Statiq
.Common - Implementing Types
Syntax
public interface IMemoryStreamFactory
Methods
| Name | Return Value | Summary |
|---|---|---|
| GetStream |
MemoryStream |
Retrieve a new
MemoryStream object with a default initial capacity.
|
| GetStream |
MemoryStream |
Retrieve a new
MemoryStream object with contents copied from the provided
buffer. The provided buffer is not wrapped or used after construction.
|
| GetStream |
MemoryStream |
Retrieve a new
MemoryStream object with at least the given capacity, possibly using
a single continugous underlying buffer.
|
| GetStream |
MemoryStream |
Retrieve a new
MemoryStream object with at least the given capacity.
|
| GetStream |
MemoryStream |
Retrieve a new
MemoryStream object with the provided string encoded as UTF8.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| GetStream |
MemoryStream |
Retrieve a new
MemoryStream object with contents copied from the provided
buffer. The provided buffer is not wrapped or used after construction.
|
| ThrowIfNull |
T |
From GuardExtensions
|
| ToDocument |
IDocument | |
| ToDocument |
IDocument | |
| ToDocument |
IDocument | |
| ToDocument |
IDocument | |
| ToDocument |
IDocument | |
| ToDocument |
IDocument |