var.nativeSlice

E[] nativeSlice(E)() if (_nativeKindOf!E != ElementType.NONE) @safe

Returns the shared mutable slice of a native array.

Only valid when the stored buffer carries the mutable qualifier: typedArray from a mutable slice, or dup()/idup() of a mutable-qualified buffer. Duplicates are always independently owned, but dup preserves the element qualifier — a duplicate of a const- or immutable-origin buffer still rejects this method (ownership independence is not mutation permission); read such buffers through as!(const(E)[]). Mutation through the returned slice is visible through every alias of the buffer.

Parameters