MemoryPool<T> MemoryPool<T> MemoryPool<T> MemoryPool<T> Class

定義

表示記憶體區塊的集區。Represents a pool of memory blocks.

generic <typename T>
public ref class MemoryPool abstract : IDisposable
public abstract class MemoryPool<T> : IDisposable
type MemoryPool<'T> = class
    interface IDisposable
Public MustInherit Class MemoryPool(Of T)
Implements IDisposable

類型參數

T

記憶體集區中的項目型別。The type of the items in the memory pool.

繼承
MemoryPool<T>MemoryPool<T>MemoryPool<T>MemoryPool<T>
實作

建構函式

MemoryPool<T>() MemoryPool<T>() MemoryPool<T>() MemoryPool<T>()

建構記憶體集區的新執行個體。Constructs a new instance of a memory pool.

屬性

MaxBufferSize MaxBufferSize MaxBufferSize MaxBufferSize

取得此集區所支援的最大緩衝區大小。Gets the maximum buffer size supported by this pool.

Shared Shared Shared Shared

根據陣列,取得記憶體集區的單一執行個體。Gets a singleton instance of a memory pool based on arrays.

方法

Dispose() Dispose() Dispose() Dispose()

釋出記憶體集區所使用的全部資源。Frees all resources used by the memory pool.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋出記憶體集區所使用的 Unmanaged 資源,並選擇性釋放 Managed 資源。Frees the unmanaged resources used by the memory pool and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
Rent(Int32) Rent(Int32) Rent(Int32) Rent(Int32)

傳回可以保留至少 minBufferSize 個 T 元素的記憶體區塊。Returns a memory block capable of holding at least minBufferSize elements of T.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於