func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R
Calls the given closure with the contents of underlying storage.
- note: Calling `withUnsafeBytes` multiple times does not guarantee that
the same buffer pointer will be passed in every time.
- warning: The buffer argument to the body should not be stored or used
outside of the lifetime of the call to the closure.
Clients should prefer the `withBytes` function to this one, because
`withBytes` uses the non-escapable type `RawSpan` to ensure that the
buffer argument is not stored outside of the closure.
get · iOS 13.0+
derRepresentation
TypeScript
get derRepresentation(): ArrayBuffer
Swift declaration
var derRepresentation: Data { get }
A Distinguished Encoding Rules (DER) encoded representation of a
P-256 digital signature.
init<D>(derRepresentation: D) throws where D : DataProtocol
Creates a P-256 digital signature from a Distinguished Encoding
Rules (DER) encoded representation.
- Parameters:
- derRepresentation: The DER-encoded representation of the
signature.
get · iOS 13.0+
rawRepresentation
TypeScript
get rawRepresentation(): ArrayBuffer
Swift declaration
var rawRepresentation: Data
A raw data representation of a P-256 digital signature.
set · iOS 13.0+
rawRepresentation
TypeScript
set rawRepresentation(value: ArrayBuffer)
Swift declaration
var rawRepresentation: Data
A raw data representation of a P-256 digital signature.
init<D>(rawRepresentation: D) throws where D : DataProtocol
Creates a P-256 digital signature from a raw representation.
- Parameters:
- rawRepresentation: A raw representation of the signature as a
collection of contiguous bytes.