bytes
A span over the bytes of this buffer.
Declaration
var bytes: RawSpan { get }Return Value
A RawSpan over the bytes 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 write to the underlying memory. The programmer must ensure that the memory remains allocated, initialized and immutable for the lifetime of the returned span.