Instance Methodswift 6.0.1Swift

    initialize(from:)

    Initializes memory starting at this pointer’s address with the elements of the given collection.

    This declaration was obsoleted in Swift 5.0: it will be removed in Swift 5.0. Please use 'UnsafeMutableBufferPointer.initialize(from:)' instead

    func initialize<C>(from source: C) where Pointee == C.Element, C : Collection

    Parameters

    source

    A collection of elements of the pointer’s Pointee type.

    The region of memory starting at this pointer and covering source.count instances of the pointer’s Pointee type must be uninitialized or Pointee must be a trivial type. After calling initialize(from:), the region is initialized.

    Other members in extension

    Typealiases

    Type members

    Instance members

    Show obsolete interfaces (7)

    Hide obsolete interfaces