Namespace: Rx – Class: IMemoryAccess – Header: Rx.Core/IMemoryAccess.h

IMemoryAccess Class

C++
#include "Rx.Core/IMemoryAccess.h"
class IMemoryAccess

Interface for memory read operations.

Methods

GetElementSize()

Gets the element size. The memory block is made up of blocks of the given number of bytes. The function Length() returns the number of elements in the memory block, where each element is of the size given in GetElementSize(). For example, an array of 10 doubles has element size 8 and length 10.

Length()

Gets the number of elements in the memory block. The total number of bytes allocated by the memory block is given by the length times the element size.

GetPointer()

Gets the pointer to memory.

IsValid()

Query if this object is valid. This function returns also true if the object itself is valid but the memory block has size zero.