TRefCountedHandle
Definition
Unit: Neslib.Iceoryx2.System
Properties
| Name | Description |
|---|---|
| Handle | Handle to the underlying C object. |
Constructors
| Name | Description |
|---|---|
| Create | |
| Destroy |
Methods
| Name | Description |
|---|---|
| Assign | Assigns ASrc to ADst, updating both reference counts as needed |
| Create | Creates a ref counted handle from a C object handle and the function to call when the C object must be released. |
| Release | Decreases the reference count and releases the underlying C object if the reference count reached 0. Can be called on a nil-instance. |
| Retain | Increases the reference count. Can be called on a nil-instance. |
Property Descriptions
Handle
Handle to the underlying C object.
property Handle: THandle read FHandle write FHandle
Type: THandle
Constructor Descriptions
Create
class constructor Create
Destroy
class destructor Destroy
Method Descriptions
Assign(PRefCountedHandle, PRefCountedHandle)
Assigns ASrc to ADst, updating both reference counts as needed
class procedure Assign(var ADst: PRefCountedHandle; const ASrc: PRefCountedHandle); static
Parameters
ADst: PRefCountedHandle
ASrc: PRefCountedHandle
Create(THandle, TNativeDropFunc)
Creates a ref counted handle from a C object handle and the function to call when the C object must be released.
class function Create(const AHandle: THandle; const ADropFunc: TNativeDropFunc): PRefCountedHandle; static
Parameters
AHandle: THandle
ADropFunc: TNativeDropFunc
Returns
Release
Decreases the reference count and releases the underlying C object if the reference count reached 0. Can be called on a nil-instance.
procedure Release; inline
Retain
Increases the reference count. Can be called on a nil-instance.
procedure Retain; inline