Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance MethodSwift

withBytes(_:)

iOS 12.2+ iPadOS 12.2+ Mac Catalyst 12.2+ macOS 10.14.4+ tvOS 12.2+ visionOS 1.0+ watchOS 5.2+
func withBytes<R, E>(_ body: (RawSpan) throws(E) -> R) throws(E) -> R where E : Error, R : ~Copyable