InternalCalls
Overview
Low level apis for Island
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
constructor protected
constructor
InternalCalls()
init()
InternalCalls()
Sub New()
Does an atomic Add on an adress and a value; returns the original value.
Parameters:
- address: the value to increase
- value: the value to inrease with
Does an atomic Add on an adress and a value; returns the original value.
Parameters:
- address: the value to increase
- value: the value to increase with
Does an atomic Add on an adress and a value; returns the original value.
Parameters:
- address: the value to increase
- value: the value to inrease with
Add (NativeUInt, NativeUInt): NativeUInt
Does an atomic Add on an adress and a value; returns the original value.
class method Add(var address: NativeUInt; value: NativeUInt): NativeUInt
static NativeUInt Add(ref NativeUInt address, NativeUInt value)
static func Add(_ address: NativeUInt, _ value: NativeUInt) -> NativeUInt
static NativeUInt Add(__ref NativeUInt address, NativeUInt value)
Shared Function Add(ByRef address As NativeUInt, value As NativeUInt) As NativeUInt
Parameters:
- address: the value to increase
- value: the value to inrease with
Alloca
Parameters:
- aSize:
Does an atomic And on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic And on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic And on an adress and a value; returns the original value.
Parameters:
- address:
- value:
And (NativeUInt, NativeUInt): NativeUInt
Does an atomic And on an adress and a value; returns the original value.
class method And(var address: NativeUInt; value: NativeUInt): NativeUInt
static NativeUInt And(ref NativeUInt address, NativeUInt value)
static func And(_ address: NativeUInt, _ value: NativeUInt) -> NativeUInt
static NativeUInt And(__ref NativeUInt address, NativeUInt value)
Shared Function And(ByRef address As NativeUInt, value As NativeUInt) As NativeUInt
Parameters:
- address:
- value:
Asm
Inline assembly; this call is replaced by the AT&T syntax asm passed to this method. This returns the primary register (R0, RAX etc)
class method Asm(aAsm: String; aConstraints: String; aSideEffects: Boolean; aAlign: Boolean; params aArgs: array of Object): NativeInt
static NativeInt Asm(String aAsm, String aConstraints, Boolean aSideEffects, Boolean aAlign, params Object[] aArgs)
static func Asm(_ aAsm: String, _ aConstraints: String, _ aSideEffects: Boolean, _ aAlign: Boolean, _ aArgs: Object...) -> NativeInt
Parameters:
- aAsm: The assembly to use; Note that $ has to be escaped with $ (so $$1 for decimal 1 in AT&T); $0 refers to the first parameter passed to aArgs, etc.
- aConstraints: A clang compatible constraint string
- aSideEffects: If true this asm block has side effects not visible in the constraint list
- aAlign: If true, the stack has to be aligned before entering this blcok
- aArgs: Argument array passed to asm.
Parameters:
- o:
Cast (Object): ^void
Does a raw cast of the object O to a pointer. Note that a regular reference to O has to be kept around to make sure this value does not get garbage collected.
class method Cast(o: Object): ^void
static void* Cast(Object o)
static func Cast(_ o: Object) -> UnsafeMutablePointer<void>
static void* Cast(Object o)
Shared Function Cast(o As Object) As Ptr(Of Void)
Parameters:
- o: the value to cast
Cast<T>
Casts an Object stored as pointer back to it's real type. The T parameter refers to the type this value should be cast to. Note that this does no checking on the type at all and will always succeed.
class method Cast<T>(o: ^void): T
static T Cast<T>(void* o)
static func Cast<T>(_ o: UnsafeMutablePointer<void>) -> T
static T Cast<T>(void* o)
Shared Function Cast<T>(o As Ptr(Of Void)) As T
Parameters:
- o: The value to cast
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
class method CompareExchange(var address: NativeInt; value: NativeInt; compare: NativeInt): NativeInt
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
CompareExchange (NativeUInt, NativeUInt, NativeUInt): NativeUInt
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
class method CompareExchange(var address: NativeUInt; value: NativeUInt; compare: NativeUInt): NativeUInt
static NativeUInt CompareExchange(ref NativeUInt address, NativeUInt value, NativeUInt compare)
static func CompareExchange(_ address: NativeUInt, _ value: NativeUInt, _ compare: NativeUInt) -> NativeUInt
static NativeUInt CompareExchange(__ref NativeUInt address, NativeUInt value, NativeUInt compare)
Shared Function CompareExchange(ByRef address As NativeUInt, value As NativeUInt, compare As NativeUInt) As NativeUInt
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
CompareExchange<T>
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
class method CompareExchange<T>(var address: T; value: T; compare: T): T
static T CompareExchange<T>(ref T address, T value, T compare)
static func CompareExchange<T>(_ address: T, _ value: T, _ compare: T) -> T
static T CompareExchange<T>(__ref T address, T value, T compare)
Shared Function CompareExchange<T>(ByRef address As T, value As T, compare As T) As T
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
Does an decrement on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Does an decrement on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Does an decrement on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Exchanges the value stored at address with a new value and returns the old value.
Parameters:
- address: Address this value is stored at
- value: New value to store
Exchanges the value stored at address with a new value and returns the old value.
Parameters:
- address: Address this value is stored at
- value: New value to store
Exchanges the value stored at address with a new value and returns the old value.
Parameters:
- address: Address this value is stored at
- value: New value to store
Exchange (NativeUInt, NativeUInt): NativeUInt
Exchanges the value stored at address with a new value and returns the old value.
class method Exchange(var address: NativeUInt; value: NativeUInt): NativeUInt
static NativeUInt Exchange(ref NativeUInt address, NativeUInt value)
static func Exchange(_ address: NativeUInt, _ value: NativeUInt) -> NativeUInt
static NativeUInt Exchange(__ref NativeUInt address, NativeUInt value)
Shared Function Exchange(ByRef address As NativeUInt, value As NativeUInt) As NativeUInt
Parameters:
- address: Address this value is stored at
- value: The value to write
Exchanges the value stored at address with a new value and returns the old value.
Parameters:
- address: Address this value is stored at
- value: New value to store
Exchanges the value stored at address with a new value and returns the old value.
Parameters:
- address: Address this value is stored at
- value: New value to store
Exchange<T>
Exchanges the value stored at address with a new value and returns the old value.
class method Exchange<T>(var address: T; value: T): T
static T Exchange<T>(ref T address, T value)
static func Exchange<T>(_ address: T, _ value: T) -> T
static T Exchange<T>(__ref T address, T value)
Shared Function Exchange<T>(ByRef address As T, value As T) As T
Parameters:
- address: Address this value is stored at
- value: New value to store
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetIslandTypeInfo<T>
class method GetIslandTypeInfo<T>: ^void
static void* GetIslandTypeInfo<T>()
static func GetIslandTypeInfo<T>() -> UnsafeMutablePointer<void>
static void* GetIslandTypeInfo<T>()
Shared Function GetIslandTypeInfo<T>() As Ptr(Of Void)
GetSwiftTypeInfo<T> iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, visionOS, visionOS Simulator, watchOS, watchOS Simulator
class method GetSwiftTypeInfo<T>: ^void
static void* GetSwiftTypeInfo<T>()
static func GetSwiftTypeInfo<T>() -> UnsafeMutablePointer<void>
static void* GetSwiftTypeInfo<T>()
Shared Function GetSwiftTypeInfo<T>() As Ptr(Of Void)
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
GetTypeInfo<T>
Returns the RTTI info for a given type T
class method GetTypeInfo<T>: ^void
static void* GetTypeInfo<T>()
static func GetTypeInfo<T>() -> UnsafeMutablePointer<void>
static void* GetTypeInfo<T>()
Shared Function GetTypeInfo<T>() As Ptr(Of Void)
GuidOf<T>
Returns the guid of an interface or class type.
class method GuidOf<T>: Guid
static Guid GuidOf<T>()
static func GuidOf<T>() -> Guid
static Guid GuidOf<T>()
Shared Function GuidOf<T>() As Guid
Does an increment on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Does an increment on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Does an increment on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Does an atomic Or on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic Or on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic Or on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Or (NativeUInt, NativeUInt): NativeUInt
Does an atomic Or on an adress and a value; returns the original value.
class method Or(var address: NativeUInt; value: NativeUInt): NativeUInt
static NativeUInt Or(ref NativeUInt address, NativeUInt value)
static func Or(_ address: NativeUInt, _ value: NativeUInt) -> NativeUInt
static NativeUInt Or(__ref NativeUInt address, NativeUInt value)
Shared Function Or(ByRef address As NativeUInt, value As NativeUInt) As NativeUInt
Parameters:
- address:
- value:
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
ToString virtual (declared in Object)
Gets the string representation of this method.
method ToString: String
String ToString()
func ToString() -> String
String ToString()
Function ToString() As String
Undefined<T>
Returns an "undefined" value, used for optimization purposes.
class method Undefined<T>: T
static T Undefined<T>()
static func Undefined<T>() -> T
static T Undefined<T>()
Shared Function Undefined<T>() As T
VoidAsm
Inline assembly; this call is replaced by the AT&T syntax asm passed to this method.
class method VoidAsm(aAsm: String; aConstraints: String; aSideEffects: Boolean; aAlign: Boolean; params aArgs: array of Object)
static void VoidAsm(String aAsm, String aConstraints, Boolean aSideEffects, Boolean aAlign, params Object[] aArgs)
static func VoidAsm(_ aAsm: String, _ aConstraints: String, _ aSideEffects: Boolean, _ aAlign: Boolean, _ aArgs: Object...)
Parameters:
- aAsm: The assembly to use; Note that $ has to be escaped with $ (so $$1 for decimal 1 in AT&T); $0 refers to the first parameter passed to aArgs, etc.
- aConstraints: A clang compatible constraint string
- aSideEffects: If true this asm block has side effects not visible in the constraint list
- aAlign: If true, the stack has to be aligned before entering this blcok
- aArgs: Argument array passed to asm.
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
VolatileRead (NativeUInt, Boolean): NativeUInt
Forces the compiler to read a value atomically.
class method VolatileRead(var address: NativeUInt; aAtomic: Boolean): NativeUInt
static NativeUInt VolatileRead(ref NativeUInt address, Boolean aAtomic)
static func VolatileRead(_ address: NativeUInt, _ aAtomic: Boolean) -> NativeUInt
static NativeUInt VolatileRead(__ref NativeUInt address, Boolean aAtomic)
Shared Function VolatileRead(ByRef address As NativeUInt, aAtomic As Boolean) As NativeUInt
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
VolatileWrite (NativeUInt, NativeUInt, Boolean)
class method VolatileWrite(var address: NativeUInt; value: NativeUInt; aAtomic: Boolean)
static void VolatileWrite(ref NativeUInt address, NativeUInt value, Boolean aAtomic)
static func VolatileWrite(_ address: NativeUInt, _ value: NativeUInt, _ aAtomic: Boolean)
static void VolatileWrite(__ref NativeUInt address, NativeUInt value, Boolean aAtomic)
Shared Sub VolatileWrite(ByRef address As NativeUInt, value As NativeUInt, aAtomic As Boolean)
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Does an atomic XOr on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic XOr on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic XOr on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Xor (NativeUInt, NativeUInt): NativeUInt
Does an atomic XOr on an adress and a value; returns the original value.
class method Xor(var address: NativeUInt; value: NativeUInt): NativeUInt
static NativeUInt Xor(ref NativeUInt address, NativeUInt value)
static func Xor(_ address: NativeUInt, _ value: NativeUInt) -> NativeUInt
static NativeUInt Xor(__ref NativeUInt address, NativeUInt value)
Shared Function Xor(ByRef address As NativeUInt, value As NativeUInt) As NativeUInt
Parameters:
- address:
- value:
Does an atomic Add on an adress and a value; returns the original value.
Parameters:
- address: the value to increase
- value: the value to inrease with
Does an atomic Add on an adress and a value; returns the original value.
Parameters:
- address: the value to increase
- value: the value to increase with
Does an atomic Add on an adress and a value; returns the original value.
Parameters:
- address: the value to increase
- value: the value to inrease with
Add (NativeUInt, NativeUInt): NativeUInt
Does an atomic Add on an adress and a value; returns the original value.
class method Add(var address: NativeUInt; value: NativeUInt): NativeUInt
static NativeUInt Add(ref NativeUInt address, NativeUInt value)
static func Add(_ address: NativeUInt, _ value: NativeUInt) -> NativeUInt
static NativeUInt Add(__ref NativeUInt address, NativeUInt value)
Shared Function Add(ByRef address As NativeUInt, value As NativeUInt) As NativeUInt
Parameters:
- address: the value to increase
- value: the value to inrease with
Alloca
Parameters:
- aSize:
Does an atomic And on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic And on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic And on an adress and a value; returns the original value.
Parameters:
- address:
- value:
And (NativeUInt, NativeUInt): NativeUInt
Does an atomic And on an adress and a value; returns the original value.
class method And(var address: NativeUInt; value: NativeUInt): NativeUInt
static NativeUInt And(ref NativeUInt address, NativeUInt value)
static func And(_ address: NativeUInt, _ value: NativeUInt) -> NativeUInt
static NativeUInt And(__ref NativeUInt address, NativeUInt value)
Shared Function And(ByRef address As NativeUInt, value As NativeUInt) As NativeUInt
Parameters:
- address:
- value:
Asm
Inline assembly; this call is replaced by the AT&T syntax asm passed to this method. This returns the primary register (R0, RAX etc)
class method Asm(aAsm: String; aConstraints: String; aSideEffects: Boolean; aAlign: Boolean; params aArgs: array of Object): NativeInt
static NativeInt Asm(String aAsm, String aConstraints, Boolean aSideEffects, Boolean aAlign, params Object[] aArgs)
static func Asm(_ aAsm: String, _ aConstraints: String, _ aSideEffects: Boolean, _ aAlign: Boolean, _ aArgs: Object...) -> NativeInt
Parameters:
- aAsm: The assembly to use; Note that $ has to be escaped with $ (so $$1 for decimal 1 in AT&T); $0 refers to the first parameter passed to aArgs, etc.
- aConstraints: A clang compatible constraint string
- aSideEffects: If true this asm block has side effects not visible in the constraint list
- aAlign: If true, the stack has to be aligned before entering this blcok
- aArgs: Argument array passed to asm.
Parameters:
- o:
Cast (Object): ^void
Does a raw cast of the object O to a pointer. Note that a regular reference to O has to be kept around to make sure this value does not get garbage collected.
class method Cast(o: Object): ^void
static void* Cast(Object o)
static func Cast(_ o: Object) -> UnsafeMutablePointer<void>
static void* Cast(Object o)
Shared Function Cast(o As Object) As Ptr(Of Void)
Parameters:
- o: the value to cast
Cast<T>
Casts an Object stored as pointer back to it's real type. The T parameter refers to the type this value should be cast to. Note that this does no checking on the type at all and will always succeed.
class method Cast<T>(o: ^void): T
static T Cast<T>(void* o)
static func Cast<T>(_ o: UnsafeMutablePointer<void>) -> T
static T Cast<T>(void* o)
Shared Function Cast<T>(o As Ptr(Of Void)) As T
Parameters:
- o: The value to cast
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
class method CompareExchange(var address: NativeInt; value: NativeInt; compare: NativeInt): NativeInt
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
CompareExchange (NativeUInt, NativeUInt, NativeUInt): NativeUInt
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
class method CompareExchange(var address: NativeUInt; value: NativeUInt; compare: NativeUInt): NativeUInt
static NativeUInt CompareExchange(ref NativeUInt address, NativeUInt value, NativeUInt compare)
static func CompareExchange(_ address: NativeUInt, _ value: NativeUInt, _ compare: NativeUInt) -> NativeUInt
static NativeUInt CompareExchange(__ref NativeUInt address, NativeUInt value, NativeUInt compare)
Shared Function CompareExchange(ByRef address As NativeUInt, value As NativeUInt, compare As NativeUInt) As NativeUInt
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
CompareExchange<T>
Does an atomic compare and exchange value and returns the old value. This method will check the value stored at address, compare it to compare, if it's equal it replaces it with value.
class method CompareExchange<T>(var address: T; value: T; compare: T): T
static T CompareExchange<T>(ref T address, T value, T compare)
static func CompareExchange<T>(_ address: T, _ value: T, _ compare: T) -> T
static T CompareExchange<T>(__ref T address, T value, T compare)
Shared Function CompareExchange<T>(ByRef address As T, value As T, compare As T) As T
Parameters:
- address: Address this value is stored at
- value: New value to store
- compare: Value to compare what's stored at address with.
Does an decrement on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Does an decrement on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Does an decrement on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Exchanges the value stored at address with a new value and returns the old value.
Parameters:
- address: Address this value is stored at
- value: New value to store
Exchanges the value stored at address with a new value and returns the old value.
Parameters:
- address: Address this value is stored at
- value: New value to store
Exchanges the value stored at address with a new value and returns the old value.
Parameters:
- address: Address this value is stored at
- value: New value to store
Exchange (NativeUInt, NativeUInt): NativeUInt
Exchanges the value stored at address with a new value and returns the old value.
class method Exchange(var address: NativeUInt; value: NativeUInt): NativeUInt
static NativeUInt Exchange(ref NativeUInt address, NativeUInt value)
static func Exchange(_ address: NativeUInt, _ value: NativeUInt) -> NativeUInt
static NativeUInt Exchange(__ref NativeUInt address, NativeUInt value)
Shared Function Exchange(ByRef address As NativeUInt, value As NativeUInt) As NativeUInt
Parameters:
- address: Address this value is stored at
- value: The value to write
Exchanges the value stored at address with a new value and returns the old value.
Parameters:
- address: Address this value is stored at
- value: New value to store
Exchanges the value stored at address with a new value and returns the old value.
Parameters:
- address: Address this value is stored at
- value: New value to store
Exchange<T>
Exchanges the value stored at address with a new value and returns the old value.
class method Exchange<T>(var address: T; value: T): T
static T Exchange<T>(ref T address, T value)
static func Exchange<T>(_ address: T, _ value: T) -> T
static T Exchange<T>(__ref T address, T value)
Shared Function Exchange<T>(ByRef address As T, value As T) As T
Parameters:
- address: Address this value is stored at
- value: New value to store
GetIslandTypeInfo<T>
class method GetIslandTypeInfo<T>: ^void
static void* GetIslandTypeInfo<T>()
static func GetIslandTypeInfo<T>() -> UnsafeMutablePointer<void>
static void* GetIslandTypeInfo<T>()
Shared Function GetIslandTypeInfo<T>() As Ptr(Of Void)
GetSwiftTypeInfo<T> iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, visionOS, visionOS Simulator, watchOS, watchOS Simulator
class method GetSwiftTypeInfo<T>: ^void
static void* GetSwiftTypeInfo<T>()
static func GetSwiftTypeInfo<T>() -> UnsafeMutablePointer<void>
static void* GetSwiftTypeInfo<T>()
Shared Function GetSwiftTypeInfo<T>() As Ptr(Of Void)
GetTypeInfo<T>
Returns the RTTI info for a given type T
class method GetTypeInfo<T>: ^void
static void* GetTypeInfo<T>()
static func GetTypeInfo<T>() -> UnsafeMutablePointer<void>
static void* GetTypeInfo<T>()
Shared Function GetTypeInfo<T>() As Ptr(Of Void)
GuidOf<T>
Returns the guid of an interface or class type.
class method GuidOf<T>: Guid
static Guid GuidOf<T>()
static func GuidOf<T>() -> Guid
static Guid GuidOf<T>()
Shared Function GuidOf<T>() As Guid
Does an increment on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Does an increment on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Does an increment on an adress; returns the original value.
Parameters:
- address: Address this value is stored at
Does an atomic Or on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic Or on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic Or on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Or (NativeUInt, NativeUInt): NativeUInt
Does an atomic Or on an adress and a value; returns the original value.
class method Or(var address: NativeUInt; value: NativeUInt): NativeUInt
static NativeUInt Or(ref NativeUInt address, NativeUInt value)
static func Or(_ address: NativeUInt, _ value: NativeUInt) -> NativeUInt
static NativeUInt Or(__ref NativeUInt address, NativeUInt value)
Shared Function Or(ByRef address As NativeUInt, value As NativeUInt) As NativeUInt
Parameters:
- address:
- value:
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
Undefined<T>
Returns an "undefined" value, used for optimization purposes.
class method Undefined<T>: T
static T Undefined<T>()
static func Undefined<T>() -> T
static T Undefined<T>()
Shared Function Undefined<T>() As T
VoidAsm
Inline assembly; this call is replaced by the AT&T syntax asm passed to this method.
class method VoidAsm(aAsm: String; aConstraints: String; aSideEffects: Boolean; aAlign: Boolean; params aArgs: array of Object)
static void VoidAsm(String aAsm, String aConstraints, Boolean aSideEffects, Boolean aAlign, params Object[] aArgs)
static func VoidAsm(_ aAsm: String, _ aConstraints: String, _ aSideEffects: Boolean, _ aAlign: Boolean, _ aArgs: Object...)
Parameters:
- aAsm: The assembly to use; Note that $ has to be escaped with $ (so $$1 for decimal 1 in AT&T); $0 refers to the first parameter passed to aArgs, etc.
- aConstraints: A clang compatible constraint string
- aSideEffects: If true this asm block has side effects not visible in the constraint list
- aAlign: If true, the stack has to be aligned before entering this blcok
- aArgs: Argument array passed to asm.
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
VolatileRead (NativeUInt, Boolean): NativeUInt
Forces the compiler to read a value atomically.
class method VolatileRead(var address: NativeUInt; aAtomic: Boolean): NativeUInt
static NativeUInt VolatileRead(ref NativeUInt address, Boolean aAtomic)
static func VolatileRead(_ address: NativeUInt, _ aAtomic: Boolean) -> NativeUInt
static NativeUInt VolatileRead(__ref NativeUInt address, Boolean aAtomic)
Shared Function VolatileRead(ByRef address As NativeUInt, aAtomic As Boolean) As NativeUInt
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Forces the compiler to read a value atomically.
Parameters:
- address: Address this value is stored at
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
VolatileWrite (NativeUInt, NativeUInt, Boolean)
class method VolatileWrite(var address: NativeUInt; value: NativeUInt; aAtomic: Boolean)
static void VolatileWrite(ref NativeUInt address, NativeUInt value, Boolean aAtomic)
static func VolatileWrite(_ address: NativeUInt, _ value: NativeUInt, _ aAtomic: Boolean)
static void VolatileWrite(__ref NativeUInt address, NativeUInt value, Boolean aAtomic)
Shared Sub VolatileWrite(ByRef address As NativeUInt, value As NativeUInt, aAtomic As Boolean)
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Parameters:
- address:
- value:
- aAtomic:
Does an atomic XOr on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic XOr on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Does an atomic XOr on an adress and a value; returns the original value.
Parameters:
- address:
- value:
Xor (NativeUInt, NativeUInt): NativeUInt
Does an atomic XOr on an adress and a value; returns the original value.
class method Xor(var address: NativeUInt; value: NativeUInt): NativeUInt
static NativeUInt Xor(ref NativeUInt address, NativeUInt value)
static func Xor(_ address: NativeUInt, _ value: NativeUInt) -> NativeUInt
static NativeUInt Xor(__ref NativeUInt address, NativeUInt value)
Shared Function Xor(ByRef address As NativeUInt, value As NativeUInt) As NativeUInt
Parameters:
- address:
- value:
constructor protected
constructor
InternalCalls()
init()
InternalCalls()
Sub New()
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
ToString virtual (declared in Object)
Gets the string representation of this method.