Generic Instance Method

withUnsafeBytes(_:)

Invokes the given closure with a buffer pointer covering the raw bytes of the shared secret.

Declaration

func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R

Parameters

body

A closure that takes a raw buffer pointer to the bytes of the shared secret and returns the shared secret.

Return Value

The shared secret, as returned from the body closure.

Relationships

From Protocol