Table of Contents

Interface IMemoryBlock

Namespace
NumSharp.Backends.Unmanaged
Assembly
NumSharp.dll
public interface IMemoryBlock
Extension Methods

Properties

Address

The start address of this memory block.

void* Address { get; }

Property Value

void*

BytesLength

How many bytes are stored in this memory block.

long BytesLength { get; }

Property Value

long

Remarks

Calculated by Count*ItemLength

Count

How many items are stored in Address.

long Count { get; }

Property Value

long

Remarks

Not to confuse with BytesLength

ItemLength

The size of a single item stored in Address.

int ItemLength { get; }

Property Value

int

Remarks

Equivalent to NPTypeCode.SizeOf extension.

TypeCode

The NPTypeCode of the type stored inside this memory block.

NPTypeCode TypeCode { get; }

Property Value

NPTypeCode