withUnsafeBytes(_:)

    Calls the given closure with a pointer to the underlying bytes of the array’s contiguous storage.

    Nonces.swift:133
    func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R

    Parameters

    body

    A closure with an UnsafeRawBufferPointer parameter that points to the contiguous storage for the array. The system creates the storage if it doesn’t exist. If body has a return value, that value is also used as the return value for the withUnsafeBytes(_:) method. The argument is valid only for the duration of the closure’s execution.

    Returns

    The return value, if any, of the body closure parameter.

    Other members in extension

    Type members

    Instance members