operator [] method Null safety
- int index
Creates a reference to access the fields of this union backed by native
memory at address + sizeOf<T>() * index
.
The address must be aligned according to the union alignment rules of the platform.
This extension method must be invoked with a compile-time constant T
.
Implementation
external T operator [](int index);