Show / Hide Table of Contents

    Class FileArrayMemory<TElement>

    Represents a memory block with access via indexer and stored as file on disk.

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

    Inheritance
    Object
    FileArrayMemory<TElement>
    Implements
    IArrayMemory<TElement>
    IMemory
    Namespace: Platform.Memory
    Assembly: Platform.Memory.dll
    Syntax
    public class FileArrayMemory<TElement> : DisposableBase, IArrayMemory<TElement>, IMemory where TElement : struct
    Type Parameters
    Name Description
    TElement

    Element type.

    Тип элемента.

    Constructors

    | Improve this Doc View Source

    FileArrayMemory(FileStream)

    Initializes a new instance of the FileArrayMemory<TElement> class.

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

    Declaration
    public FileArrayMemory(FileStream file)
    Parameters
    Type Name Description
    FileStream file

    File stream.

    Файловый поток.

    | Improve this Doc View Source

    FileArrayMemory(String)

    Initializes a new instance of the FileArrayMemory<TElement> class.

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

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

    An path to file.

    Путь к файлу.

    Properties

    | Improve this Doc View Source

    Item[Int64]

    Gets or sets the element at the specified index.

    Возвращает или устанавливает элемент по указанному индексу.

    Declaration
    public TElement this[long index] { get; set; }
    Parameters
    Type Name Description
    Int64 index

    The index of the element to get or set.

    Индекс элемента, который нужно получить или установить.

    Property Value
    Type Description
    TElement
    | Improve this Doc View Source

    ObjectName

    Declaration
    protected override string ObjectName { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Size

    Gets the size in bytes of this memory block.

    Возвращает размер блока памяти в байтах.

    Declaration
    public long Size { get; }
    Property Value
    Type Description
    Int64

    Methods

    | Improve this Doc View Source

    Dispose(Boolean, Boolean)

    Declaration
    protected override void Dispose(bool manual, bool wasDisposed)
    Parameters
    Type Name Description
    Boolean manual
    Boolean wasDisposed

    Implements

    IArrayMemory<TElement>
    IMemory
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX