Global

Location

 

ABS (Double): Double iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the abs value of a double.

 

class method ABS(x: Double): Double

 

static Double ABS(Double x)

 

static func ABS(_ x: Double) -> Double

 

static Double ABS(Double x)

Parameters:

  • x:

ABS (Int32): Int32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the abs value of an Int32.

 

class method ABS(x: Int32): Int32

 

static Int32 ABS(Int32 x)

 

static func ABS(_ x: Int32) -> Int32

 

static Int32 ABS(Int32 x)

Parameters:

  • x:

ABS (Int64): Int64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the abs value of an Int64.

 

class method ABS(x: Int64): Int64

 

static Int64 ABS(Int64 x)

 

static func ABS(_ x: Int64) -> Int64

 

static Int64 ABS(Int64 x)

Parameters:

  • x:

DefaultSwiftBlockDestroy iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

 

class method DefaultSwiftBlockDestroy(Dest: ^SwiftRefcounted)

 

static void DefaultSwiftBlockDestroy(SwiftRefcounted* Dest)

 

static func DefaultSwiftBlockDestroy(_ Dest: UnsafeMutablePointer<SwiftRefcounted>)

 

static void DefaultSwiftBlockDestroy(SwiftRefcounted* Dest)

Parameters:

  • Dest:

DllMain  External Windows

Entrypoint for dll main on Windows; can be overriden by applications that need specific behavior for dllmain by reintroducing them in the dll project:

[SymbolName('__elements_dll_main')]
method DllMain(aModule: rtl.HMODULE; aReason: rtl.DWORD; aReserved: ^Void): Boolean; 

 

class method DllMain(aModule: HMODULE; aReason: DWORD; aReserved: ^void): Boolean

 

static Boolean DllMain(HMODULE aModule, DWORD aReason, void* aReserved)

 

static func DllMain(_ aModule: HMODULE, _ aReason: DWORD, _ aReserved: UnsafeMutablePointer<void>) -> Boolean

 

static Boolean DllMain(HMODULE aModule, DWORD aReason, void* aReserved)

Parameters:

  • aModule:
  • aReason:
  • aReserved:

DllMainCRTStartup  stdcall Windows

Actual DLLMain implementation, calls DllMain.

 

class method DllMainCRTStartup(aModule: HMODULE; aReason: DWORD; aReserved: ^void): Boolean

 

static Boolean DllMainCRTStartup(HMODULE aModule, DWORD aReason, void* aReserved)

 

static func DllMainCRTStartup(_ aModule: HMODULE, _ aReason: DWORD, _ aReserved: UnsafeMutablePointer<void>) -> Boolean

 

static Boolean DllMainCRTStartup(HMODULE aModule, DWORD aReason, void* aReserved)

Parameters:

  • aModule:
  • aReason:
  • aReserved:

Entrypoint Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS, watchOS Simulator

Main entrypoint on Posix; calls the actual entrypoint after setting up the stackframe and initiating the GC.

 

class method Entrypoint(argc: Int32; argv: ^^AnsiChar; _envp: ^^AnsiChar): Int32

 

static Int32 Entrypoint(Int32 argc, AnsiChar** argv, AnsiChar** _envp)

 

static func Entrypoint(_ argc: Int32, _ argv: UnsafeMutablePointer<UnsafeMutablePointer<AnsiChar>>, _ _envp: UnsafeMutablePointer<UnsafeMutablePointer<AnsiChar>>) -> Int32

 

static Int32 Entrypoint(Int32 argc, AnsiChar** argv, AnsiChar** _envp)

Parameters:

  • argc:
  • argv:
  • _envp:

GetStackPointer WebAssembly

Returns the stack pointer.

 

class method GetStackPointer: IntPtr

 

static IntPtr GetStackPointer()

 

static func GetStackPointer() -> IntPtr

 

static IntPtr GetStackPointer()

HResultCheck Windows

Call this to check and throw on HResult failures.

 

class method HResultCheck(aVal: rtl.HRESULT)

 

static void HResultCheck(rtl.HRESULT aVal)

 

static func HResultCheck(_ aVal: rtl.HRESULT)

 

static void HResultCheck(rtl.HRESULT aVal)

Parameters:

  • aVal:

interlockedCompareExchange (Int32, Int32, Int32): Int32

do a locked compare of a value, if it's the same, replace it with a new value. Returns the old value.

 

class method interlockedCompareExchange(var x: Int32; compareTo: Int32; newValue: Int32): Int32

 

static Int32 interlockedCompareExchange(ref Int32 x, Int32 compareTo, Int32 newValue)

 

static func interlockedCompareExchange(_ x: Int32, _ compareTo: Int32, _ newValue: Int32) -> Int32

 

static Int32 interlockedCompareExchange(__ref Int32 x, Int32 compareTo, Int32 newValue)

Parameters:

  • x:
  • compareTo:
  • newValue:

interlockedCompareExchange (Int32, Int64, Int64): Int64

do a locked compare of a value, if it's the same, replace it with a new value. Returns the old value.

 

class method interlockedCompareExchange(var x: Int32; compareTo: Int64; newValue: Int64): Int64

 

static Int64 interlockedCompareExchange(ref Int32 x, Int64 compareTo, Int64 newValue)

 

static func interlockedCompareExchange(_ x: Int32, _ compareTo: Int64, _ newValue: Int64) -> Int64

 

static Int64 interlockedCompareExchange(__ref Int32 x, Int64 compareTo, Int64 newValue)

Parameters:

  • x:
  • compareTo:
  • newValue:

interlockedCompareExchange (Int32, IntPtr, IntPtr): IntPtr

do a locked compare of a value, if it's the same, replace it with a new value. Returns the old value.

 

class method interlockedCompareExchange(var x: Int32; compareTo: IntPtr; newValue: IntPtr): IntPtr

 

static IntPtr interlockedCompareExchange(ref Int32 x, IntPtr compareTo, IntPtr newValue)

 

static func interlockedCompareExchange(_ x: Int32, _ compareTo: IntPtr, _ newValue: IntPtr) -> IntPtr

 

static IntPtr interlockedCompareExchange(__ref Int32 x, IntPtr compareTo, IntPtr newValue)

Parameters:

  • x:
  • compareTo:
  • newValue:

interlockedDec (Int32, Int32): Int32

Interlocked decrease a value. Returns the old value.

 

class method interlockedDec(var x: Int32; increment: Int32): Int32

 

static Int32 interlockedDec(ref Int32 x, Int32 increment)

 

static func interlockedDec(_ x: Int32, _ increment: Int32) -> Int32

 

static Int32 interlockedDec(__ref Int32 x, Int32 increment)

Parameters:

  • x:
  • increment:

interlockedDec (Int64, Int64): Int64

Interlocked decrease a value. Returns the old value.

 

class method interlockedDec(var x: Int64; increment: Int64): Int64

 

static Int64 interlockedDec(ref Int64 x, Int64 increment)

 

static func interlockedDec(_ x: Int64, _ increment: Int64) -> Int64

 

static Int64 interlockedDec(__ref Int64 x, Int64 increment)

Parameters:

  • x:
  • increment:

interlockedDec (IntPtr, IntPtr): IntPtr

Interlocked decrease a value. Returns the old value.

 

class method interlockedDec(var x: IntPtr; increment: IntPtr): IntPtr

 

static IntPtr interlockedDec(ref IntPtr x, IntPtr increment)

 

static func interlockedDec(_ x: IntPtr, _ increment: IntPtr) -> IntPtr

 

static IntPtr interlockedDec(__ref IntPtr x, IntPtr increment)

Parameters:

  • x:
  • increment:

interlockedInc (Int32, Int32): Int32

Interlocked increase a value. Returns the old value.

 

class method interlockedInc(var x: Int32; increment: Int32): Int32

 

static Int32 interlockedInc(ref Int32 x, Int32 increment)

 

static func interlockedInc(_ x: Int32, _ increment: Int32) -> Int32

 

static Int32 interlockedInc(__ref Int32 x, Int32 increment)

Parameters:

  • x:
  • increment:

interlockedInc (Int64, Int64): Int64

Interlocked increase a value. Returns the old value.

 

class method interlockedInc(var x: Int64; increment: Int64): Int64

 

static Int64 interlockedInc(ref Int64 x, Int64 increment)

 

static func interlockedInc(_ x: Int64, _ increment: Int64) -> Int64

 

static Int64 interlockedInc(__ref Int64 x, Int64 increment)

Parameters:

  • x:
  • increment:

interlockedInc (IntPtr, IntPtr): IntPtr

Interlocked increase a value. Returns the old value.

 

class method interlockedInc(var x: IntPtr; increment: IntPtr): IntPtr

 

static IntPtr interlockedInc(ref IntPtr x, IntPtr increment)

 

static func interlockedInc(_ x: IntPtr, _ increment: IntPtr) -> IntPtr

 

static IntPtr interlockedInc(__ref IntPtr x, IntPtr increment)

Parameters:

  • x:
  • increment:

MAX (Double, Double): Double iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Double; y: Double): Double

 

static Double MAX(Double x, Double y)

 

static func MAX(_ x: Double, _ y: Double) -> Double

 

static Double MAX(Double x, Double y)

Parameters:

  • x:
  • y:

MAX (Int32, Int32): Int32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Int32; y: Int32): Int32

 

static Int32 MAX(Int32 x, Int32 y)

 

static func MAX(_ x: Int32, _ y: Int32) -> Int32

 

static Int32 MAX(Int32 x, Int32 y)

Parameters:

  • x:
  • y:

MAX (Int32, UInt32): UInt32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Int32; y: UInt32): UInt32

 

static UInt32 MAX(Int32 x, UInt32 y)

 

static func MAX(_ x: Int32, _ y: UInt32) -> UInt32

 

static UInt32 MAX(Int32 x, UInt32 y)

Parameters:

  • x:
  • y:

MAX (Int64, Int64): Int64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Int64; y: Int64): Int64

 

static Int64 MAX(Int64 x, Int64 y)

 

static func MAX(_ x: Int64, _ y: Int64) -> Int64

 

static Int64 MAX(Int64 x, Int64 y)

Parameters:

  • x:
  • y:

MAX (Int64, UInt64): UInt64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Int64; y: UInt64): UInt64

 

static UInt64 MAX(Int64 x, UInt64 y)

 

static func MAX(_ x: Int64, _ y: UInt64) -> UInt64

 

static UInt64 MAX(Int64 x, UInt64 y)

Parameters:

  • x:
  • y:

MAX (Single, Single): Single iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Single; y: Single): Single

 

static Single MAX(Single x, Single y)

 

static func MAX(_ x: Single, _ y: Single) -> Single

 

static Single MAX(Single x, Single y)

Parameters:

  • x:
  • y:

MAX (UInt32, Int32): UInt32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: UInt32; y: Int32): UInt32

 

static UInt32 MAX(UInt32 x, Int32 y)

 

static func MAX(_ x: UInt32, _ y: Int32) -> UInt32

 

static UInt32 MAX(UInt32 x, Int32 y)

Parameters:

  • x:
  • y:

MAX (UInt32, UInt32): UInt32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: UInt32; y: UInt32): UInt32

 

static UInt32 MAX(UInt32 x, UInt32 y)

 

static func MAX(_ x: UInt32, _ y: UInt32) -> UInt32

 

static UInt32 MAX(UInt32 x, UInt32 y)

Parameters:

  • x:
  • y:

MAX (UInt64, Int64): UInt64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: UInt64; y: Int64): UInt64

 

static UInt64 MAX(UInt64 x, Int64 y)

 

static func MAX(_ x: UInt64, _ y: Int64) -> UInt64

 

static UInt64 MAX(UInt64 x, Int64 y)

Parameters:

  • x:
  • y:

MAX (UInt64, UInt64): UInt64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: UInt64; y: UInt64): UInt64

 

static UInt64 MAX(UInt64 x, UInt64 y)

 

static func MAX(_ x: UInt64, _ y: UInt64) -> UInt64

 

static UInt64 MAX(UInt64 x, UInt64 y)

Parameters:

  • x:
  • y:

memcpy

cross platform memcpy implementation. Copies memory from source to destination for num bytes not allowing for overlap.

 

class method memcpy(destination: ^void; source: ^void; num: NativeInt): ^void

 

static void* memcpy(void* destination, void* source, NativeInt num)

 

static func memcpy(_ destination: UnsafeMutablePointer<void>, _ source: UnsafeMutablePointer<void>, _ num: NativeInt) -> UnsafeMutablePointer<void>

 

static void* memcpy(void* destination, void* source, NativeInt num)

Parameters:

  • destination: target
  • source: origin
  • num: the number of bytes

memmove

cross platform memmove implementation. Copies memory from source to destination for num bytes allowing for overlap.

 

class method memmove(destination: ^void; source: ^void; num: NativeInt): ^void

 

static void* memmove(void* destination, void* source, NativeInt num)

 

static func memmove(_ destination: UnsafeMutablePointer<void>, _ source: UnsafeMutablePointer<void>, _ num: NativeInt) -> UnsafeMutablePointer<void>

 

static void* memmove(void* destination, void* source, NativeInt num)

Parameters:

  • destination: target
  • source: origin
  • num: the number of bytes

memset

cross platform memset implementation. Fills the ptr with the byte from value for num times.

 

class method memset(ptr: ^void; value: Int32; num: NativeInt): ^void

 

static void* memset(void* ptr, Int32 value, NativeInt num)

 

static func memset(_ ptr: UnsafeMutablePointer<void>, _ value: Int32, _ num: NativeInt) -> UnsafeMutablePointer<void>

 

static void* memset(void* ptr, Int32 value, NativeInt num)

Parameters:

  • ptr: target
  • value: the byte value
  • num: the number of bytes

MIN (Double, Double): Double iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Double; y: Double): Double

 

static Double MIN(Double x, Double y)

 

static func MIN(_ x: Double, _ y: Double) -> Double

 

static Double MIN(Double x, Double y)

Parameters:

  • x:
  • y:

MIN (Int32, Int32): Int32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Int32; y: Int32): Int32

 

static Int32 MIN(Int32 x, Int32 y)

 

static func MIN(_ x: Int32, _ y: Int32) -> Int32

 

static Int32 MIN(Int32 x, Int32 y)

Parameters:

  • x:
  • y:

MIN (Int32, UInt32): Int32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Int32; y: UInt32): Int32

 

static Int32 MIN(Int32 x, UInt32 y)

 

static func MIN(_ x: Int32, _ y: UInt32) -> Int32

 

static Int32 MIN(Int32 x, UInt32 y)

Parameters:

  • x:
  • y:

MIN (Int64, Int64): Int64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Int64; y: Int64): Int64

 

static Int64 MIN(Int64 x, Int64 y)

 

static func MIN(_ x: Int64, _ y: Int64) -> Int64

 

static Int64 MIN(Int64 x, Int64 y)

Parameters:

  • x:
  • y:

MIN (Int64, UInt64): Int64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Int64; y: UInt64): Int64

 

static Int64 MIN(Int64 x, UInt64 y)

 

static func MIN(_ x: Int64, _ y: UInt64) -> Int64

 

static Int64 MIN(Int64 x, UInt64 y)

Parameters:

  • x:
  • y:

MIN (Single, Single): Single iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Single; y: Single): Single

 

static Single MIN(Single x, Single y)

 

static func MIN(_ x: Single, _ y: Single) -> Single

 

static Single MIN(Single x, Single y)

Parameters:

  • x:
  • y:

MIN (UInt32, Int32): Int32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: UInt32; y: Int32): Int32

 

static Int32 MIN(UInt32 x, Int32 y)

 

static func MIN(_ x: UInt32, _ y: Int32) -> Int32

 

static Int32 MIN(UInt32 x, Int32 y)

Parameters:

  • x:
  • y:

MIN (UInt32, UInt32): UInt32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: UInt32; y: UInt32): UInt32

 

static UInt32 MIN(UInt32 x, UInt32 y)

 

static func MIN(_ x: UInt32, _ y: UInt32) -> UInt32

 

static UInt32 MIN(UInt32 x, UInt32 y)

Parameters:

  • x:
  • y:

MIN (UInt64, Int64): Int64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: UInt64; y: Int64): Int64

 

static Int64 MIN(UInt64 x, Int64 y)

 

static func MIN(_ x: UInt64, _ y: Int64) -> Int64

 

static Int64 MIN(UInt64 x, Int64 y)

Parameters:

  • x:
  • y:

MIN (UInt64, UInt64): UInt64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: UInt64; y: UInt64): UInt64

 

static UInt64 MIN(UInt64 x, UInt64 y)

 

static func MIN(_ x: UInt64, _ y: UInt64) -> UInt64

 

static UInt64 MIN(UInt64 x, UInt64 y)

Parameters:

  • x:
  • y:

ObjectToVar Windows

Converts an object to an Ole Variant type.

 

class method ObjectToVar(o: Object): Variant

 

static Variant ObjectToVar(Object o)

 

static func ObjectToVar(_ o: Object) -> Variant

 

static Variant ObjectToVar(Object o)

Parameters:

  • o:

PtrToIntType iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

 

class var PtrToIntType: array [0..6] of AnsiChar;

 

static array [0..6] of AnsiChar PtrToIntType

 

static var PtrToIntType: array [0..6] of AnsiChar

 

static array [0..6] of AnsiChar PtrToIntType

SwiftBlockData iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

 

class var SwiftBlockData: SwiftReflectionMetadata;

 

static SwiftReflectionMetadata SwiftBlockData

 

static var SwiftBlockData: SwiftReflectionMetadata

 

static SwiftReflectionMetadata SwiftBlockData

SwiftBlockDataRecl iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

 

class var SwiftBlockDataRecl: SwiftReflectionDeclarator;

 

static SwiftReflectionDeclarator SwiftBlockDataRecl

 

static var SwiftBlockDataRecl: SwiftReflectionDeclarator

 

static SwiftReflectionDeclarator SwiftBlockDataRecl

VarConvert Windows

Converts an OLE variant to a different vartype.

 

class method VarConvert(var aLeft: Variant; aTarget: VarType): Variant

 

static Variant VarConvert(ref Variant aLeft, VarType aTarget)

 

static func VarConvert(_ aLeft: Variant, _ aTarget: VarType) -> Variant

 

static Variant VarConvert(__ref Variant aLeft, VarType aTarget)

Parameters:

  • aLeft:
  • aTarget:

VarIsEmpty Windows

Returns true if a variant is empty.

 

class method VarIsEmpty(var aVar: Variant): Boolean

 

static Boolean VarIsEmpty(ref Variant aVar)

 

static func VarIsEmpty(_ aVar: Variant) -> Boolean

 

static Boolean VarIsEmpty(__ref Variant aVar)

Parameters:

  • aVar:

VarIsNull Windows

Returns true if a variant is null.

 

class method VarIsNull(var aVar: Variant): Boolean

 

static Boolean VarIsNull(ref Variant aVar)

 

static func VarIsNull(_ aVar: Variant) -> Boolean

 

static Boolean VarIsNull(__ref Variant aVar)

Parameters:

  • aVar:

VarToObject Windows

Converts a variant to it's obejct equivalent.

 

class method VarToObject(v: Variant): Object

 

static Object VarToObject(Variant v)

 

static func VarToObject(_ v: Variant) -> Object

 

static Object VarToObject(Variant v)

Parameters:

  • v:

WinMainCRTStartup Windows

Windows entry point; calls the real entrypoint after setting up the stack and gc.

 

class method WinMainCRTStartup: Int32

 

static Int32 WinMainCRTStartup()

 

static func WinMainCRTStartup() -> Int32

 

static Int32 WinMainCRTStartup()

 

PtrToIntType iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

 

class var PtrToIntType: array [0..6] of AnsiChar;

 

static array [0..6] of AnsiChar PtrToIntType

 

static var PtrToIntType: array [0..6] of AnsiChar

 

static array [0..6] of AnsiChar PtrToIntType

SwiftBlockData iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

 

class var SwiftBlockData: SwiftReflectionMetadata;

 

static SwiftReflectionMetadata SwiftBlockData

 

static var SwiftBlockData: SwiftReflectionMetadata

 

static SwiftReflectionMetadata SwiftBlockData

SwiftBlockDataRecl iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

 

class var SwiftBlockDataRecl: SwiftReflectionDeclarator;

 

static SwiftReflectionDeclarator SwiftBlockDataRecl

 

static var SwiftBlockDataRecl: SwiftReflectionDeclarator

 

static SwiftReflectionDeclarator SwiftBlockDataRecl

 

ABS (Double): Double iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the abs value of a double.

 

class method ABS(x: Double): Double

 

static Double ABS(Double x)

 

static func ABS(_ x: Double) -> Double

 

static Double ABS(Double x)

Parameters:

  • x:

ABS (Int32): Int32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the abs value of an Int32.

 

class method ABS(x: Int32): Int32

 

static Int32 ABS(Int32 x)

 

static func ABS(_ x: Int32) -> Int32

 

static Int32 ABS(Int32 x)

Parameters:

  • x:

ABS (Int64): Int64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the abs value of an Int64.

 

class method ABS(x: Int64): Int64

 

static Int64 ABS(Int64 x)

 

static func ABS(_ x: Int64) -> Int64

 

static Int64 ABS(Int64 x)

Parameters:

  • x:

DefaultSwiftBlockDestroy iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

 

class method DefaultSwiftBlockDestroy(Dest: ^SwiftRefcounted)

 

static void DefaultSwiftBlockDestroy(SwiftRefcounted* Dest)

 

static func DefaultSwiftBlockDestroy(_ Dest: UnsafeMutablePointer<SwiftRefcounted>)

 

static void DefaultSwiftBlockDestroy(SwiftRefcounted* Dest)

Parameters:

  • Dest:

DllMain  External Windows

Entrypoint for dll main on Windows; can be overriden by applications that need specific behavior for dllmain by reintroducing them in the dll project:

[SymbolName('__elements_dll_main')]
method DllMain(aModule: rtl.HMODULE; aReason: rtl.DWORD; aReserved: ^Void): Boolean; 

 

class method DllMain(aModule: HMODULE; aReason: DWORD; aReserved: ^void): Boolean

 

static Boolean DllMain(HMODULE aModule, DWORD aReason, void* aReserved)

 

static func DllMain(_ aModule: HMODULE, _ aReason: DWORD, _ aReserved: UnsafeMutablePointer<void>) -> Boolean

 

static Boolean DllMain(HMODULE aModule, DWORD aReason, void* aReserved)

Parameters:

  • aModule:
  • aReason:
  • aReserved:

DllMainCRTStartup  stdcall Windows

Actual DLLMain implementation, calls DllMain.

 

class method DllMainCRTStartup(aModule: HMODULE; aReason: DWORD; aReserved: ^void): Boolean

 

static Boolean DllMainCRTStartup(HMODULE aModule, DWORD aReason, void* aReserved)

 

static func DllMainCRTStartup(_ aModule: HMODULE, _ aReason: DWORD, _ aReserved: UnsafeMutablePointer<void>) -> Boolean

 

static Boolean DllMainCRTStartup(HMODULE aModule, DWORD aReason, void* aReserved)

Parameters:

  • aModule:
  • aReason:
  • aReserved:

Entrypoint Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS, watchOS Simulator

Main entrypoint on Posix; calls the actual entrypoint after setting up the stackframe and initiating the GC.

 

class method Entrypoint(argc: Int32; argv: ^^AnsiChar; _envp: ^^AnsiChar): Int32

 

static Int32 Entrypoint(Int32 argc, AnsiChar** argv, AnsiChar** _envp)

 

static func Entrypoint(_ argc: Int32, _ argv: UnsafeMutablePointer<UnsafeMutablePointer<AnsiChar>>, _ _envp: UnsafeMutablePointer<UnsafeMutablePointer<AnsiChar>>) -> Int32

 

static Int32 Entrypoint(Int32 argc, AnsiChar** argv, AnsiChar** _envp)

Parameters:

  • argc:
  • argv:
  • _envp:

GetStackPointer WebAssembly

Returns the stack pointer.

 

class method GetStackPointer: IntPtr

 

static IntPtr GetStackPointer()

 

static func GetStackPointer() -> IntPtr

 

static IntPtr GetStackPointer()

HResultCheck Windows

Call this to check and throw on HResult failures.

 

class method HResultCheck(aVal: rtl.HRESULT)

 

static void HResultCheck(rtl.HRESULT aVal)

 

static func HResultCheck(_ aVal: rtl.HRESULT)

 

static void HResultCheck(rtl.HRESULT aVal)

Parameters:

  • aVal:

interlockedCompareExchange (Int32, Int32, Int32): Int32

do a locked compare of a value, if it's the same, replace it with a new value. Returns the old value.

 

class method interlockedCompareExchange(var x: Int32; compareTo: Int32; newValue: Int32): Int32

 

static Int32 interlockedCompareExchange(ref Int32 x, Int32 compareTo, Int32 newValue)

 

static func interlockedCompareExchange(_ x: Int32, _ compareTo: Int32, _ newValue: Int32) -> Int32

 

static Int32 interlockedCompareExchange(__ref Int32 x, Int32 compareTo, Int32 newValue)

Parameters:

  • x:
  • compareTo:
  • newValue:

interlockedCompareExchange (Int32, Int64, Int64): Int64

do a locked compare of a value, if it's the same, replace it with a new value. Returns the old value.

 

class method interlockedCompareExchange(var x: Int32; compareTo: Int64; newValue: Int64): Int64

 

static Int64 interlockedCompareExchange(ref Int32 x, Int64 compareTo, Int64 newValue)

 

static func interlockedCompareExchange(_ x: Int32, _ compareTo: Int64, _ newValue: Int64) -> Int64

 

static Int64 interlockedCompareExchange(__ref Int32 x, Int64 compareTo, Int64 newValue)

Parameters:

  • x:
  • compareTo:
  • newValue:

interlockedCompareExchange (Int32, IntPtr, IntPtr): IntPtr

do a locked compare of a value, if it's the same, replace it with a new value. Returns the old value.

 

class method interlockedCompareExchange(var x: Int32; compareTo: IntPtr; newValue: IntPtr): IntPtr

 

static IntPtr interlockedCompareExchange(ref Int32 x, IntPtr compareTo, IntPtr newValue)

 

static func interlockedCompareExchange(_ x: Int32, _ compareTo: IntPtr, _ newValue: IntPtr) -> IntPtr

 

static IntPtr interlockedCompareExchange(__ref Int32 x, IntPtr compareTo, IntPtr newValue)

Parameters:

  • x:
  • compareTo:
  • newValue:

interlockedDec (Int32, Int32): Int32

Interlocked decrease a value. Returns the old value.

 

class method interlockedDec(var x: Int32; increment: Int32): Int32

 

static Int32 interlockedDec(ref Int32 x, Int32 increment)

 

static func interlockedDec(_ x: Int32, _ increment: Int32) -> Int32

 

static Int32 interlockedDec(__ref Int32 x, Int32 increment)

Parameters:

  • x:
  • increment:

interlockedDec (Int64, Int64): Int64

Interlocked decrease a value. Returns the old value.

 

class method interlockedDec(var x: Int64; increment: Int64): Int64

 

static Int64 interlockedDec(ref Int64 x, Int64 increment)

 

static func interlockedDec(_ x: Int64, _ increment: Int64) -> Int64

 

static Int64 interlockedDec(__ref Int64 x, Int64 increment)

Parameters:

  • x:
  • increment:

interlockedDec (IntPtr, IntPtr): IntPtr

Interlocked decrease a value. Returns the old value.

 

class method interlockedDec(var x: IntPtr; increment: IntPtr): IntPtr

 

static IntPtr interlockedDec(ref IntPtr x, IntPtr increment)

 

static func interlockedDec(_ x: IntPtr, _ increment: IntPtr) -> IntPtr

 

static IntPtr interlockedDec(__ref IntPtr x, IntPtr increment)

Parameters:

  • x:
  • increment:

interlockedInc (Int32, Int32): Int32

Interlocked increase a value. Returns the old value.

 

class method interlockedInc(var x: Int32; increment: Int32): Int32

 

static Int32 interlockedInc(ref Int32 x, Int32 increment)

 

static func interlockedInc(_ x: Int32, _ increment: Int32) -> Int32

 

static Int32 interlockedInc(__ref Int32 x, Int32 increment)

Parameters:

  • x:
  • increment:

interlockedInc (Int64, Int64): Int64

Interlocked increase a value. Returns the old value.

 

class method interlockedInc(var x: Int64; increment: Int64): Int64

 

static Int64 interlockedInc(ref Int64 x, Int64 increment)

 

static func interlockedInc(_ x: Int64, _ increment: Int64) -> Int64

 

static Int64 interlockedInc(__ref Int64 x, Int64 increment)

Parameters:

  • x:
  • increment:

interlockedInc (IntPtr, IntPtr): IntPtr

Interlocked increase a value. Returns the old value.

 

class method interlockedInc(var x: IntPtr; increment: IntPtr): IntPtr

 

static IntPtr interlockedInc(ref IntPtr x, IntPtr increment)

 

static func interlockedInc(_ x: IntPtr, _ increment: IntPtr) -> IntPtr

 

static IntPtr interlockedInc(__ref IntPtr x, IntPtr increment)

Parameters:

  • x:
  • increment:

MAX (Double, Double): Double iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Double; y: Double): Double

 

static Double MAX(Double x, Double y)

 

static func MAX(_ x: Double, _ y: Double) -> Double

 

static Double MAX(Double x, Double y)

Parameters:

  • x:
  • y:

MAX (Int32, Int32): Int32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Int32; y: Int32): Int32

 

static Int32 MAX(Int32 x, Int32 y)

 

static func MAX(_ x: Int32, _ y: Int32) -> Int32

 

static Int32 MAX(Int32 x, Int32 y)

Parameters:

  • x:
  • y:

MAX (Int32, UInt32): UInt32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Int32; y: UInt32): UInt32

 

static UInt32 MAX(Int32 x, UInt32 y)

 

static func MAX(_ x: Int32, _ y: UInt32) -> UInt32

 

static UInt32 MAX(Int32 x, UInt32 y)

Parameters:

  • x:
  • y:

MAX (Int64, Int64): Int64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Int64; y: Int64): Int64

 

static Int64 MAX(Int64 x, Int64 y)

 

static func MAX(_ x: Int64, _ y: Int64) -> Int64

 

static Int64 MAX(Int64 x, Int64 y)

Parameters:

  • x:
  • y:

MAX (Int64, UInt64): UInt64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Int64; y: UInt64): UInt64

 

static UInt64 MAX(Int64 x, UInt64 y)

 

static func MAX(_ x: Int64, _ y: UInt64) -> UInt64

 

static UInt64 MAX(Int64 x, UInt64 y)

Parameters:

  • x:
  • y:

MAX (Single, Single): Single iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: Single; y: Single): Single

 

static Single MAX(Single x, Single y)

 

static func MAX(_ x: Single, _ y: Single) -> Single

 

static Single MAX(Single x, Single y)

Parameters:

  • x:
  • y:

MAX (UInt32, Int32): UInt32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: UInt32; y: Int32): UInt32

 

static UInt32 MAX(UInt32 x, Int32 y)

 

static func MAX(_ x: UInt32, _ y: Int32) -> UInt32

 

static UInt32 MAX(UInt32 x, Int32 y)

Parameters:

  • x:
  • y:

MAX (UInt32, UInt32): UInt32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: UInt32; y: UInt32): UInt32

 

static UInt32 MAX(UInt32 x, UInt32 y)

 

static func MAX(_ x: UInt32, _ y: UInt32) -> UInt32

 

static UInt32 MAX(UInt32 x, UInt32 y)

Parameters:

  • x:
  • y:

MAX (UInt64, Int64): UInt64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: UInt64; y: Int64): UInt64

 

static UInt64 MAX(UInt64 x, Int64 y)

 

static func MAX(_ x: UInt64, _ y: Int64) -> UInt64

 

static UInt64 MAX(UInt64 x, Int64 y)

Parameters:

  • x:
  • y:

MAX (UInt64, UInt64): UInt64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the maximum value given two values.

 

class method MAX(x: UInt64; y: UInt64): UInt64

 

static UInt64 MAX(UInt64 x, UInt64 y)

 

static func MAX(_ x: UInt64, _ y: UInt64) -> UInt64

 

static UInt64 MAX(UInt64 x, UInt64 y)

Parameters:

  • x:
  • y:

memcpy

cross platform memcpy implementation. Copies memory from source to destination for num bytes not allowing for overlap.

 

class method memcpy(destination: ^void; source: ^void; num: NativeInt): ^void

 

static void* memcpy(void* destination, void* source, NativeInt num)

 

static func memcpy(_ destination: UnsafeMutablePointer<void>, _ source: UnsafeMutablePointer<void>, _ num: NativeInt) -> UnsafeMutablePointer<void>

 

static void* memcpy(void* destination, void* source, NativeInt num)

Parameters:

  • destination: target
  • source: origin
  • num: the number of bytes

memmove

cross platform memmove implementation. Copies memory from source to destination for num bytes allowing for overlap.

 

class method memmove(destination: ^void; source: ^void; num: NativeInt): ^void

 

static void* memmove(void* destination, void* source, NativeInt num)

 

static func memmove(_ destination: UnsafeMutablePointer<void>, _ source: UnsafeMutablePointer<void>, _ num: NativeInt) -> UnsafeMutablePointer<void>

 

static void* memmove(void* destination, void* source, NativeInt num)

Parameters:

  • destination: target
  • source: origin
  • num: the number of bytes

memset

cross platform memset implementation. Fills the ptr with the byte from value for num times.

 

class method memset(ptr: ^void; value: Int32; num: NativeInt): ^void

 

static void* memset(void* ptr, Int32 value, NativeInt num)

 

static func memset(_ ptr: UnsafeMutablePointer<void>, _ value: Int32, _ num: NativeInt) -> UnsafeMutablePointer<void>

 

static void* memset(void* ptr, Int32 value, NativeInt num)

Parameters:

  • ptr: target
  • value: the byte value
  • num: the number of bytes

MIN (Double, Double): Double iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Double; y: Double): Double

 

static Double MIN(Double x, Double y)

 

static func MIN(_ x: Double, _ y: Double) -> Double

 

static Double MIN(Double x, Double y)

Parameters:

  • x:
  • y:

MIN (Int32, Int32): Int32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Int32; y: Int32): Int32

 

static Int32 MIN(Int32 x, Int32 y)

 

static func MIN(_ x: Int32, _ y: Int32) -> Int32

 

static Int32 MIN(Int32 x, Int32 y)

Parameters:

  • x:
  • y:

MIN (Int32, UInt32): Int32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Int32; y: UInt32): Int32

 

static Int32 MIN(Int32 x, UInt32 y)

 

static func MIN(_ x: Int32, _ y: UInt32) -> Int32

 

static Int32 MIN(Int32 x, UInt32 y)

Parameters:

  • x:
  • y:

MIN (Int64, Int64): Int64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Int64; y: Int64): Int64

 

static Int64 MIN(Int64 x, Int64 y)

 

static func MIN(_ x: Int64, _ y: Int64) -> Int64

 

static Int64 MIN(Int64 x, Int64 y)

Parameters:

  • x:
  • y:

MIN (Int64, UInt64): Int64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Int64; y: UInt64): Int64

 

static Int64 MIN(Int64 x, UInt64 y)

 

static func MIN(_ x: Int64, _ y: UInt64) -> Int64

 

static Int64 MIN(Int64 x, UInt64 y)

Parameters:

  • x:
  • y:

MIN (Single, Single): Single iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: Single; y: Single): Single

 

static Single MIN(Single x, Single y)

 

static func MIN(_ x: Single, _ y: Single) -> Single

 

static Single MIN(Single x, Single y)

Parameters:

  • x:
  • y:

MIN (UInt32, Int32): Int32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: UInt32; y: Int32): Int32

 

static Int32 MIN(UInt32 x, Int32 y)

 

static func MIN(_ x: UInt32, _ y: Int32) -> Int32

 

static Int32 MIN(UInt32 x, Int32 y)

Parameters:

  • x:
  • y:

MIN (UInt32, UInt32): UInt32 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: UInt32; y: UInt32): UInt32

 

static UInt32 MIN(UInt32 x, UInt32 y)

 

static func MIN(_ x: UInt32, _ y: UInt32) -> UInt32

 

static UInt32 MIN(UInt32 x, UInt32 y)

Parameters:

  • x:
  • y:

MIN (UInt64, Int64): Int64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: UInt64; y: Int64): Int64

 

static Int64 MIN(UInt64 x, Int64 y)

 

static func MIN(_ x: UInt64, _ y: Int64) -> Int64

 

static Int64 MIN(UInt64 x, Int64 y)

Parameters:

  • x:
  • y:

MIN (UInt64, UInt64): UInt64 iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS, watchOS Simulator

Returns the minimum value given two values.

 

class method MIN(x: UInt64; y: UInt64): UInt64

 

static UInt64 MIN(UInt64 x, UInt64 y)

 

static func MIN(_ x: UInt64, _ y: UInt64) -> UInt64

 

static UInt64 MIN(UInt64 x, UInt64 y)

Parameters:

  • x:
  • y:

ObjectToVar Windows

Converts an object to an Ole Variant type.

 

class method ObjectToVar(o: Object): Variant

 

static Variant ObjectToVar(Object o)

 

static func ObjectToVar(_ o: Object) -> Variant

 

static Variant ObjectToVar(Object o)

Parameters:

  • o:

VarConvert Windows

Converts an OLE variant to a different vartype.

 

class method VarConvert(var aLeft: Variant; aTarget: VarType): Variant

 

static Variant VarConvert(ref Variant aLeft, VarType aTarget)

 

static func VarConvert(_ aLeft: Variant, _ aTarget: VarType) -> Variant

 

static Variant VarConvert(__ref Variant aLeft, VarType aTarget)

Parameters:

  • aLeft:
  • aTarget:

VarIsEmpty Windows

Returns true if a variant is empty.

 

class method VarIsEmpty(var aVar: Variant): Boolean

 

static Boolean VarIsEmpty(ref Variant aVar)

 

static func VarIsEmpty(_ aVar: Variant) -> Boolean

 

static Boolean VarIsEmpty(__ref Variant aVar)

Parameters:

  • aVar:

VarIsNull Windows

Returns true if a variant is null.

 

class method VarIsNull(var aVar: Variant): Boolean

 

static Boolean VarIsNull(ref Variant aVar)

 

static func VarIsNull(_ aVar: Variant) -> Boolean

 

static Boolean VarIsNull(__ref Variant aVar)

Parameters:

  • aVar:

VarToObject Windows

Converts a variant to it's obejct equivalent.

 

class method VarToObject(v: Variant): Object

 

static Object VarToObject(Variant v)

 

static func VarToObject(_ v: Variant) -> Object

 

static Object VarToObject(Variant v)

Parameters:

  • v:

WinMainCRTStartup Windows

Windows entry point; calls the real entrypoint after setting up the stack and gc.

 

class method WinMainCRTStartup: Int32

 

static Int32 WinMainCRTStartup()

 

static func WinMainCRTStartup() -> Int32

 

static Int32 WinMainCRTStartup()