Contents

init(mutating:)

Mutate the elements of a typed span as bytes.

Declaration

init<Element>(mutating elements: inout MutableSpan<Element>) where Element : ConvertibleFromBytes, Element : ConvertibleToBytes

Parameters

  • elements:

    A typed span to reinterpret as raw bytes.

Discussion

The stride of Element must equal its size, and the starting address of elements must be well-aligned for Element.