mutableSpan
A mutable span over the elements of this buffer.
Declaration
var mutableSpan: MutableSpan<Element> { get }Return Value
A MutableSpan over the elements of this buffer.
Discussion
The lifetime of the returned span matches the lifetime of the binding which returns it. This lifetime is a convenience, as there can be no enforcement that there is no concurrent access to the underlying memory. The programmer must ensure that the memory remains allocated, initialized and exclusively accessed for the lifetime of the returned span.