storeBytes(of:toByteOffset:as:)
Stores the given value’s bytes into the span’s raw memory at the specified byte offset.
Declaration
mutating func storeBytes<T>(of value: T, toByteOffset offset: Int = 0, as type: T.Type) where T : BitwiseCopyableParameters
- value:
The value to store as raw bytes.
- offset:
The offset from the start of the span, in bytes.
offsetmust be nonnegative. The default is zero. - type:
The type of
value.