init<U>(UnsafeMutablePointer<U>)
Explicit construction from an UnsafeMutablePointer.
UnsafeMutablePointerからの明示的な組み立て。
Availability
Technology
init?<U>(_ from: UnsafeMutablePointer
<U>?)
Returns nil if from
is nil.
from
がnilならばnilを返します。
This is inherently unsafe; UnsafeMutablePointer assumes the referenced memory has +1 strong ownership semantics, whereas AutoreleasingUnsafeMutablePointer implies +0 semantics. これは、本質的に安全ではありません;UnsafeMutablePointerは参照されるメモリが+1の強力な所有権意味論を持つことを仮定します、そういうわけでAutoreleasingUnsafeMutablePointerは必然的に+0意味論です。
Warning 警告
Accessing pointee
as a type that is unrelated to the underlying memory’s bound type is undefined.
基礎をなすメモリの境界型と関係のない型としてpointee
にアクセスすることは、未定義です。
init<U>(UnsafeMutablePointer<U>)