MemoryPoolStream Class

Provides a in memory stream that uses pages that are pooled in the unmanaged buffer pool.

Definition

Namespace: SnapDB.IO.Unmanaged
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class MemoryPoolStream : MemoryPoolStreamCore, 
	ISupportsBinaryStream, IDisposable
Inheritance
Object    MemoryPoolStreamCore    MemoryPoolStream
Implements
ISupportsBinaryStream, IDisposable

Constructors

MemoryPoolStream Creates a new MemoryPoolStream using the default MemoryPool.
MemoryPoolStream(MemoryPool) Create a new MemoryPoolStream

Properties

BlockSize Gets the unit size of an individual block.
IsDisposed Gets if the stream has been disposed.
(Inherited from MemoryPoolStreamCore)
IsReadOnly Gets if the stream can be written to.
Length Gets the length of the current stream.
(Inherited from MemoryPoolStreamCore)

Methods

ConfigureAlignment(Int64) Configure the natural alignment of the data.
(Inherited from MemoryPoolStreamCore)
ConfigureAlignment(Int64, Int32) Configure the natural alignment of the data.
(Inherited from MemoryPoolStreamCore)
CopyTo Copies data from the current position of the BinaryStream to a specified memory location.
(Inherited from MemoryPoolStreamCore)
CreateBinaryStream Creates a new binary from an IO session.
CreateIoSession Acquire an IO Session.
Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from MemoryPoolStreamCore)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Releases the unmanaged resources before the MemoryPoolStreamCore object is reclaimed by GC.
(Inherited from MemoryPoolStreamCore)
GetBlock Gets a block for the following IO session.
(Inherited from MemoryPoolStreamCore)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ReadBlock Reads from the underlying stream the requested set of data. This function is more user friendly than calling GetBlock().
(Inherited from MemoryPoolStreamCore)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also