Skip to content

swift_initWithTakeNoAlias(________)

0x41c edited this page Feb 28, 2022 · 1 revision

swift_initWithTakeNoAlias(_:_:_:_:)

Using an empty heap object and an already existant array, this takes values from the existant one and fills the empty one. If the metadata is POD, this is done memcpy; else it is done with a witness funcion.

@_silgen_name("swift_arrayInitWithTakeNoAlias")
public func swift_initWithTakeNoAlias(
    _ destination: UnsafeRawPointer,
    _ source: UnsafeRawPointer,
    _ count: Int,
    _ self: Any.Type
)
  • C++ Template Values:

    • ArrayDest::Assign
    • ArraySource::Copy
    • ArrayCopy::FrontToBack

Parameters

  • destination: The destination heap object.
  • source: The source heap object.
  • count: Amount of items in the source object.
  • self: The destinations initialized metadata.
Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally