Skip to content

swift_copyPOD(______)

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

swift_copyPOD(_:_:_:)

Preforms a memcpy of the source data into the address of the destination. It gets the size from the objectType parameter once it's cast to a metadata type with an attached witness table size.

@_silgen_name("swift_copyPOD")
public func swift_copyPOD(
    _ destination: UnsafeRawPointer,
    _ source: UnsafeRawPointer,
    _ objectType: Any.Type
)

Parameters

  • destination: The destination address to copy the data to.
  • source: The source pointer to copy the memory of into the destination.
  • objectType: The metadata to get the memory size of.
Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally