MemoryMap.view

Get a typed view on the memory map that support slice and indexing operations.

struct MemoryMap
view
(
T
)
(
in size_t offset = 0
,
in size_t count = size_t.max
)
if (
isDynamicArray!T
)

Parameters

offset size_t

the offset to the requested memory in bytes

count size_t

the number of elements of type T.init[0] to be mapped Warning: offset and count are not in the same units. This is necessary in order to allow a memory block to hold several arrays of different element types.

Meta