struct DataRange

Represents a range of memory containing sequential elements.

Elements may be optionally separated by a stride. Provides utility methods for easier reads and writes.

Public

Constructors

DataRange

DataRange(void *const data = nullptr, u64 elementCount = 0, u64 strideInBytes = 0)

Constructs the data range.

data
Beginning of raw memory the data range is viewing.
elementCount
Number of elements in the range.
strideInBytes
Stride between elements. If 0, the stride will be automatically deduced from provided data type during access.

Fields

Data

u8 * Data

ElementCount

size_t ElementCount

ExplicitStrideInBytes

size_t ExplicitStrideInBytes