Contents

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 : BitwiseCopyable

Parameters

  • value:

    The value to store as raw bytes.

  • offset:

    The offset from the start of the span, in bytes. offset must be nonnegative. The default is zero.

  • type:

    The type of value.