Show / Hide Table of Contents

    Class ArrayMemory<TElement>

    Represents a memory block with access via indexer.

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

    Inheritance
    Object
    ArrayMemory<TElement>
    Implements
    IArrayMemory<TElement>
    IMemory
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Platform.Memory
    Assembly: Platform.Memory.dll
    Syntax
    public class ArrayMemory<TElement> : IArrayMemory<TElement>, IMemory
    Type Parameters
    Name Description
    TElement

    Element type.

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

    Constructors

    | Improve this Doc View Source

    ArrayMemory(Int64)

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

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

    Declaration
    public ArrayMemory(long size)
    Parameters
    Type Name Description
    Int64 size

    Size in bytes.

    Размер в байтах.

    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

    Size

    Gets the size in bytes of this memory block.

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

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

    Implements

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