Show / Hide Table of Contents

    Class DirectMemoryAsArrayMemoryAdapter<TElement>

    Represents adapter to a memory block with access via indexer.

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

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

    Element type.

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

    Constructors

    | Improve this Doc View Source

    DirectMemoryAsArrayMemoryAdapter(IDirectMemory)

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

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

    Declaration
    public DirectMemoryAsArrayMemoryAdapter(IDirectMemory memory)
    Parameters
    Type Name Description
    IDirectMemory memory

    An object implementing IDirectMemory interface.

    Объект, реализующий интерфейс IDirectMemory.

    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

    Pointer

    Gets the pointer to the beginning of this memory block.

    Возвращает указатель на начало блока памяти.

    Declaration
    public IntPtr Pointer { get; }
    Property Value
    Type Description
    IntPtr
    | 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>
    IDirectMemory
    IMemory
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX