TLayout
Contains a valid "Layout", meaning the alignment is a power of two and the size is zero or a multiple of the alignment.
Definition
Unit: Neslib.Iceoryx2.System
Properties
| Name | Description |
|---|---|
| Alignment | Returns the stored alignment |
| Size | Returns the stored size. |
Methods
| Name | Description |
|---|---|
| Create | Creates a new TLayout from the given ASize and AAlign. * If the ASize is not a multiple of AAlign it will be rounded up so that it becomes a multiple of AAlign. * If AAlign is not a power of two it fails. |
[From<T>](#From1) :material-cube:{ title="Class method" } | Creates a new TLayout from the provided typeT` |
Property Descriptions
Alignment
Returns the stored alignment
property Alignment: UInt64 read FAlign
Type: UInt64
Size
Returns the stored size.
property Size: UInt64 read FSize
Type: UInt64
Method Descriptions
Create(UInt64, UInt64)
Creates a new TLayout from the given ASize and AAlign. * If the ASize is not a multiple of AAlign it will be rounded up so that it becomes a multiple of AAlign. * If AAlign is not a power of two it fails.
class function Create(const ASize, AAlign: UInt64): TResult<TLayout, TLayoutCreationError>; static
Parameters
ASize: UInt64
AAlign: UInt64
Returns
TResult<TLayout, TLayoutCreationError>
From<T>
Creates a new TLayout from the provided type T
class function From<T>: TLayout; inline; static
Type Parameters
T: