Provides pooled memory streams (via the RecyclableMemoryStream library).
- Namespace
- Statiq
.Common - Implementing Types
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 |
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 |