Show / Hide Table of Contents

    Class FileMappedResizableDirectMemory

    Represents a memory block stored as a file on disk.

    Представляет блок памяти, хранящийся в виде файла на диске.

    Inheritance
    Object
    ResizableDirectMemoryBase
    FileMappedResizableDirectMemory
    TemporaryFileMappedResizableDirectMemory
    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 FileMappedResizableDirectMemory : ResizableDirectMemoryBase, IResizableDirectMemory, IDirectMemory, IMemory, IDisposable

    Constructors

    | Improve this Doc View Source

    FileMappedResizableDirectMemory(String)

    Initializes a new instance of the FileMappedResizableDirectMemory class.

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

    Declaration
    public FileMappedResizableDirectMemory(string path)
    Parameters
    Type Name Description
    String path

    An path to file.

    Путь к файлу.

    | Improve this Doc View Source

    FileMappedResizableDirectMemory(String, Int64)

    Initializes a new instance of the FileMappedResizableDirectMemory class.

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

    Declaration
    public FileMappedResizableDirectMemory(string path, long minimumReservedCapacity)
    Parameters
    Type Name Description
    String path

    An path to file.

    Путь к файлу.

    Int64 minimumReservedCapacity

    Minimum file size in bytes.

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

    Fields

    | Improve this Doc View Source

    Path

    Gets path to memory mapped file.

    Получает путь к отображенному в памяти файлу.

    Declaration
    protected readonly string Path
    Field Value
    Type Description
    String

    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