Table of Contents

Class RecyclableMemoryStreamSupport

Namespace
MASES.EntityFrameworkCore.KNet.Serialization
Assembly
MASES.EntityFrameworkCore.KNet.Serialization.dll

An helper class to centralize management of every ByteBuffer conversion for DefaultKEFCoreSerDes or any other serialization sub-system which needs ByteBuffer transport

public static class RecyclableMemoryStreamSupport
Inheritance
RecyclableMemoryStreamSupport
Inherited Members

Methods

Rent()

Returns a new MemoryStream which is an implementation of Microsoft.IO.RecyclableMemoryStream

public static MemoryStream Rent()

Returns

MemoryStream

The allocated MemoryStream

SetEnable(bool, Options?)

Set to true to enable, or false to disable, the usage of Microsoft.IO.RecyclableMemoryStream

public static void SetEnable(bool enable, RecyclableMemoryStreamManager.Options? options = null)

Parameters

enable bool

true to enable Microsoft.IO.RecyclableMemoryStream support with optional options

options RecyclableMemoryStreamManager.Options

The Microsoft.IO.RecyclableMemoryStreamManager.Options options to use