Skip to content

swift_initWithTakeFrontToBack(________)

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

swift_initWithTakeFrontToBack(_:_:_:_:)

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 memmove; else it is done with a witness funcion.

@_silgen_name("swift_arrayInitWithTakeFrontToBack")
public func swift_initWithTakeFrontToBack(
    _ 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