ILifetimeStrategy<T>

Overview

Lifetime stategy interface. See Lifetime strategies

Location


Required Methods


Assign

 

class method Assign(var aDest: T; var aSource: T)

 

static void Assign(ref T aDest, ref T aSource)

 

static func Assign(_ aDest: T, _ aSource: T)

 

static void Assign(__ref T aDest, __ref T aSource)

 

Shared Sub Assign(ByRef aDest As T, ByRef aSource As T)

Parameters:

  • aDest:
  • aSource:

Copy

 

class method Copy(var aDest: T; var aSource: T)

 

static void Copy(ref T aDest, ref T aSource)

 

static func Copy(_ aDest: T, _ aSource: T)

 

static void Copy(__ref T aDest, __ref T aSource)

 

Shared Sub Copy(ByRef aDest As T, ByRef aSource As T)

Parameters:

  • aDest:
  • aSource:

Init

 

class method Init(var Dest: T)

 

static void Init(ref T Dest)

 

static func Init(_ Dest: T)

 

static void Init(__ref T Dest)

 

Shared Sub Init(ByRef Dest As T)

Parameters:

  • Dest:

New

Create a new object for a given type; aTTY is the type info which should be in the object at offset 0, aSize should be size allocated.

 

class method New(aTTY: ^void; aSize: NativeInt): ^void

 

static void* New(void* aTTY, NativeInt aSize)

 

static func New(_ aTTY: UnsafeMutablePointer<void>, _ aSize: NativeInt) -> UnsafeMutablePointer<void>

 

static void* New(void* aTTY, NativeInt aSize)

 

Shared Function New(aTTY As Ptr(Of Void), aSize As NativeInt) As Ptr(Of Void)

Parameters:

  • aTTY:
  • aSize:

Release

 

class method Release(var Dest: T)

 

static void Release(ref T Dest)

 

static func Release(_ Dest: T)

 

static void Release(__ref T Dest)

 

Shared Sub Release(ByRef Dest As T)

Parameters:

  • Dest: