Show / Hide Table of Contents

    Class HeapResizableDirectMemory

    Represents a memory block allocated in Heap.

    Представляет блок памяти, выделенный в "куче".

    Inheritance
    Object
    ResizableDirectMemoryBase
    HeapResizableDirectMemory
    Implements
    IResizableDirectMemory
    IDirectMemory
    IMemory
    IDisposable
    Inherited Members
    ResizableDirectMemoryBase.MinimumCapacity
    ResizableDirectMemoryBase.Size
    ResizableDirectMemoryBase.Pointer
    ResizableDirectMemoryBase.ReservedCapacity
    ResizableDirectMemoryBase.UsedCapacity
    ResizableDirectMemoryBase.AllowMultipleDisposeCalls
    ResizableDirectMemoryBase.Dispose(Boolean, Boolean)
    Namespace: Platform.Memory
    Assembly: Platform.Memory.dll
    Syntax
    public class HeapResizableDirectMemory : ResizableDirectMemoryBase, IResizableDirectMemory, IDirectMemory, IMemory, IDisposable

    Constructors

    | Improve this Doc View Source

    HeapResizableDirectMemory()

    Initializes a new instance of the HeapResizableDirectMemory class.

    Инициализирует новый экземпляр класса HeapResizableDirectMemory.

    Declaration
    public HeapResizableDirectMemory()
    | Improve this Doc View Source

    HeapResizableDirectMemory(Int64)

    Initializes a new instance of the HeapResizableDirectMemory class.

    Инициализирует новый экземпляр класса HeapResizableDirectMemory.

    Declaration
    public HeapResizableDirectMemory(long minimumReservedCapacity)
    Parameters
    Type Name Description
    Int64 minimumReservedCapacity

    Minimum file size in bytes.

    Минимальный размер файла в байтах.

    Properties

    | Improve this Doc View Source

    ObjectName

    Declaration
    protected override string ObjectName { get; }
    Property Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    DisposePointer(IntPtr, Int64)

    Executed when it is time to dispose Pointer.

    Выполняется, когда пришло время высвободить Pointer.

    Declaration
    protected override void DisposePointer(IntPtr pointer, long usedCapacity)
    Parameters
    Type Name Description
    IntPtr pointer

    The pointer to a memory block.

    Указатель на блок памяти.

    Int64 usedCapacity

    The used capacity of the memory block in bytes.

    Используемая емкость блока памяти в байтах.

    Overrides
    ResizableDirectMemoryBase.DisposePointer(IntPtr, Int64)
    | Improve this Doc View Source

    OnReservedCapacityChanged(Int64, Int64)

    Executed on the event of change for ReservedCapacity property.

    Выполняется в случае изменения свойства ReservedCapacity.

    Declaration
    protected override void OnReservedCapacityChanged(long oldReservedCapacity, long newReservedCapacity)
    Parameters
    Type Name Description
    Int64 oldReservedCapacity

    The old reserved capacity of the memory block in bytes.

    Старая зарезервированная емкость блока памяти в байтах.

    Int64 newReservedCapacity

    The new reserved capacity of the memory block in bytes.

    Новая зарезервированная емкость блока памяти в байтах.

    Overrides
    ResizableDirectMemoryBase.OnReservedCapacityChanged(Int64, Int64)

    Implements

    IResizableDirectMemory
    IDirectMemory
    IMemory
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX