Function MemoryMap.view

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

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

Parameters

NameDescription
offset the offset to the requested memory in bytes
count 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.