func withUnsafeMutablePointer<T, Result>(inout: T, _: UnsafeMutablePointer<T> throws -> Result) Invokes body with an UnsafeMutablePointer to arg and returns the result. Useful for calling Objective-C APIs that take "in/out" parameters (and default-constructible "out" parameters) by pointer. Declaration func withUnsafeMutablePointer<T, Result>(inout arg: T, @noescape _ body: UnsafeMutablePointer<T> throws -> Result) rethrows -> Result
Invokes
body
with anUnsafeMutablePointer
toarg
and returns the result. Useful for calling Objective-C APIs that take "in/out" parameters (and default-constructible "out" parameters) by pointer.Declaration
func
withUnsafeMutablePointer
<
T
,
Result
>
(
inout
arg
:
T
, @
noescape
_
body
:
UnsafeMutablePointer
<
T
>
throws
-
>
Result
)
rethrows
-
>
Result