TBLArrayView<T>
Array view of T.
Definition
Unit: Blend2D
Type Parameters
T:
Remarks
T must be an unmanaged type (eg. cannot be a String or interface or dynamic array) and cannot contain [weak] references. This is checked with an assertion.
Nested Types
| Name | Description |
|---|---|
| P | A pointer to type T. |
Properties
| Name | Description |
|---|---|
| Items | |
| Refs | |
| Size |
Constructors
| Name | Description |
|---|---|
| Create(P, NativeInt) | |
| Create | |
| Initialize | Creates a default empty array view |
Methods
| Name | Description |
|---|---|
| First | |
| Last | |
| Reset(P, NativeInt) | |
| Reset |
Property Descriptions
Items
property Items[const AIndex: NativeInt]: T read GetItem; default
Type: T
Refs
property Refs[const AIndex: NativeInt]: P read GetRef
Type: P
Size
property Size: NativeInt read FSize
Type: NativeInt
Constructor Descriptions
Create
constructor Create(const ADataIn: P; const ASizeIn: NativeInt)
Parameters
ADataIn: P
ASizeIn: NativeInt
Create
class constructor Create
Initialize
Creates a default empty array view
constructor Initialize(out ADest: TBLArrayView<T>)
Parameters
ADest: TBLArrayView<T>
Method Descriptions
First
function First: P; inline
Returns
P
Last
function Last: P; inline
Returns
P
Reset(P, NativeInt)
procedure Reset(const ADataIn: P; const ASizeIn: NativeInt); overload; inline
Parameters
ADataIn: P
ASizeIn: NativeInt
Reset
procedure Reset; overload; inline