Avatar
omochimetaru 6/7/2017 9:35 AM
Constant Pointers When a function is declared as taking an UnsafePointer<Type> argument, it can accept any of the following: An UnsafePointer<Type>, UnsafeMutablePointer<Type>, or AutoreleasingUnsafeMutablePointer<Type> value, which is converted to UnsafePointer<Type> if necessary. A String value, if Type is Int8 or UInt8. The string will automatically be converted to UTF8 in a buffer, and a pointer to that buffer is passed to the function. An in-out expression that contains a mutable variable, property, or subscript reference of type Type, which is passed as a pointer to the address of the left-hand side identifier. A [Type] value, which is passed as a pointer to the start of the array.
9:35 AM
inout式が渡せるって3番目に書いてある。