Class ArrayMemory<TElement>
Represents a memory block with access via indexer.
Представляет блок памяти с доступом через индексатор.
Inherited Members
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 SourceArrayMemory(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 SourceItem[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 |
Size
Gets the size in bytes of this memory block.
Возвращает размер блока памяти в байтах.
Declaration
public long Size { get; }
Property Value
| Type | Description |
|---|---|
| Int64 |