Show / Hide Table of Contents

Class PooledMemoryStreamHolder

Struct holding a pooled MemoryStream instance. Values of this type get returned from the New methods on PooledMemoryStream and provide a strongly typed disposable wrapper around the resource.

Inheritance
System.Object
PooledMemoryStreamHolder
Implements
System.IDisposable
Namespace: System.IO
Assembly: Nuqleon.Memory.dll
Syntax
public sealed class PooledMemoryStreamHolder : ValueType, IDisposable

Constructors

PooledMemoryStreamHolder(PooledObject<PooledMemoryStream>)

Creates a new holder for the given pooled memory stream object.

Declaration
public PooledMemoryStreamHolder(PooledObject<PooledMemoryStream> obj)
Parameters
Type Name Description
PooledObject<PooledMemoryStream> obj

Pooled memory stream object to create a holder for.

Properties

MemoryStream

Gets the MemoryStream instance held by this instance.

Declaration
public MemoryStream MemoryStream { get; }
Property Value
Type Description
System.IO.MemoryStream

The MemoryStream instance held by the holder.

Methods

Dispose()

Returns the pooled MemoryStream instance back to the pool.

Declaration
public void Dispose()

Implements

System.IDisposable
In This Article
Back to top Generated by DocFX