Skip to content

swift_arrayAssignWithCopyFrontToBack(________)

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

swift_arrayAssignWithCopyFrontToBack(_:_:_:_:)

Using an already existant array and associated heap object, this assigns values from the source object to the destination object by copying them from the front of the object to the back. It does this using a memove when the witness table is POD, and by using a default witness function when not POD.

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