withUnsafeBytes(_:)
Accesses the raw bytes in the data’s buffer.
Declaration
func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultTypeAccesses the raw bytes in the data’s buffer.
func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType