init?<U>(UnsafeMutablePointer<U>?)
init<U>(UnsafeMutablePointer<U>)
Availability
Technology
@frozen struct AutoreleasingUnsafeMutablePointer<Pointee>
Pointee
must be a class type or Optional<C>
where C
is a class.
Pointee
は、クラス型またはOptional<C>
でなければなりません、そこでC
はクラスです。
This type has implicit conversions to allow passing any of the following to a C or ObjC API: この型は暗黙的な変換を持ち、それによって以下のことをCまたはObjC APIへ渡すことを可能にされます:
nil
, which gets passed as a null pointer,
nil
、それはヌルポインターとして渡されます、
an inout argument of the referenced type, which gets passed as a pointer to a writeback temporary with autoreleasing ownership semantics, 参照される型のインアウト引数、それはオートリリース所有権意味論を持つライトバックテンポラリへのポインタとして渡されます。
an Unsafe
, which is passed as-is.
Unsafe
、それは現品で渡されます。
Passing pointers to mutable arrays of ObjC class pointers is not directly supported. Unlike Unsafe
, Autoreleasing
must reference storage that does not own a reference count to the referenced value. UnsafeMutablePointer’s operations, by contrast, assume that the referenced storage owns values loaded from or stored to it.
ObjCクラスポインタの可変配列へポインタを渡すことは、直接にサポートされません。Unsafe
とは違い、Autoreleasing
は、参照される値への参照カウントを保有しないストレージを参照しなければなりません。UnsafeMutablePointerの行う操作は、対照的に、参照されるストレージがそれからロードされたりそれへと格納される値を所有すると仮定します。
This type does not carry an owner pointer unlike the other C*Pointer types because it only needs to reference the results of inout conversions, which already have writeback-scoped lifetime. この型は、他のC*Pointer型と違って所有ポインタを持ち運びません、なぜならそれはただインアウト変換の結果を参照する必要があるだけだからです、そしてそれは既にライトバックスコープの寿命を持ちます。
init?<U>(UnsafeMutablePointer<U>?)
init<U>(UnsafeMutablePointer<U>)
var pointee: Pointee
Pointee
instance referenced by self
.
self
によって参照されるPointee
インスタンスを回収または設定します。
subscript(Int) -> Pointee
i
th element of the raw array pointed to by self
.
self
によって指し示される生の配列のi
番目の要素にアクセスします。
static func == (AutoreleasingUnsafeMutablePointer<Pointee>, AutoreleasingUnsafeMutablePointer<Pointee>) -> Bool
static func != (AutoreleasingUnsafeMutablePointer<Pointee>, AutoreleasingUnsafeMutablePointer<Pointee>) -> Bool
typealias AutoreleasingUnsafeMutablePointer.Stride
init?(AutoreleasingUnsafeMutablePointer<Pointee>?)
init?(OpaquePointer?)
init(OpaquePointer)
init(AutoreleasingUnsafeMutablePointer<Pointee>)
init?(bitPattern : Int)
init?(bitPattern : UInt)
var customMirror : Mirror
var debugDescription : String
var hashValue : Int
func advanced(by: Int) -> AutoreleasingUnsafeMutablePointer<Pointee>
func distance(to: AutoreleasingUnsafeMutablePointer<Pointee>) -> Int
Pointee
type.
このポインタから与えられたポインタまでの隔たりを返します、ポインタのもつPointee
型のインスタンスとして数えられます。
func hash(into: inout Hasher)
func predecessor() -> AutoreleasingUnsafeMutablePointer<Pointee>
func successor() -> AutoreleasingUnsafeMutablePointer<Pointee>
static func ... (AutoreleasingUnsafeMutablePointer<Pointee>) -> PartialRangeFrom<AutoreleasingUnsafeMutablePointer<Pointee>>
static func ... (AutoreleasingUnsafeMutablePointer<Pointee>) -> PartialRangeThrough<AutoreleasingUnsafeMutablePointer<Pointee>>
static func ... (AutoreleasingUnsafeMutablePointer<Pointee>, AutoreleasingUnsafeMutablePointer<Pointee>) -> ClosedRange<AutoreleasingUnsafeMutablePointer<Pointee>>
static func ..< (AutoreleasingUnsafeMutablePointer<Pointee>) -> PartialRangeUpTo<AutoreleasingUnsafeMutablePointer<Pointee>>
static func ..< (AutoreleasingUnsafeMutablePointer<Pointee>, AutoreleasingUnsafeMutablePointer<Pointee>) -> Range<AutoreleasingUnsafeMutablePointer<Pointee>>
static func < (AutoreleasingUnsafeMutablePointer<Pointee>, AutoreleasingUnsafeMutablePointer<Pointee>) -> Bool
static func <= (AutoreleasingUnsafeMutablePointer<Pointee>, AutoreleasingUnsafeMutablePointer<Pointee>) -> Bool
static func > (AutoreleasingUnsafeMutablePointer<Pointee>, AutoreleasingUnsafeMutablePointer<Pointee>) -> Bool
static func >= (AutoreleasingUnsafeMutablePointer<Pointee>, AutoreleasingUnsafeMutablePointer<Pointee>) -> Bool
struct OpaquePointer