Many-Item Pointers [*]T
Address a run of elements.
Pointing at a Run
Sometimes a pointer addresses not one value but the start of a sequence of values laid out in memory. 🧱
The [*]T Type
A many-item pointer is written [*]T. The star inside the brackets means it points at an unknown number of T values in a row.
var run: [*]u8 = undefined;All lessons in this course
- Single-Item Pointers with *T
- Dereferencing with ptr.*
- Many-Item Pointers [*]T
- Const Pointers and Alignment