Skip to content

TBLContextCookie

Holds an arbitrary 128-bit value (cookie) that can be used to match other cookies. Blend2D uses cookies in places where it allows to "lock" some state that can only be unlocked by a matching cookie. Please don't confuse cookies with a security of any kind, it's just an arbitrary data that must match to proceed with a certain operation.

Cookies can be used with TBLContext.Save and TBLContext.Restore operations.

Definition

Unit: Blend2D

type TBLContextCookie = record ... end;

See Also

Properties

Name Description
IsEmpty

Operators

Name Description
Equal
NotEqual

Methods

Name Description
Equals
Reset(UInt64, UInt64)
Reset(TBLContextCookie)
Reset

Property Descriptions

IsEmpty

property IsEmpty: Boolean read GetIsEmpty

Type: Boolean


Operator Descriptions

Equal(TBLContextCookie, TBLContextCookie)

class operator Equal(const ALeft, ARight: TBLContextCookie): Boolean; inline; static

Parameters

ALeft: TBLContextCookie

ARight: TBLContextCookie

Returns

Boolean


NotEqual(TBLContextCookie, TBLContextCookie)

class operator NotEqual(const ALeft, ARight: TBLContextCookie): Boolean; inline; static

Parameters

ALeft: TBLContextCookie

ARight: TBLContextCookie

Returns

Boolean


Method Descriptions

Equals(TBLContextCookie)

function Equals(const AOther: TBLContextCookie): Boolean; inline

Parameters

AOther: TBLContextCookie

Returns

Boolean


Reset(UInt64, UInt64)

procedure Reset(const AData0, AData1: UInt64); overload; inline

Parameters

AData0: UInt64

AData1: UInt64


Reset(TBLContextCookie)

procedure Reset(const AOther: TBLContextCookie); overload; inline

Parameters

AOther: TBLContextCookie


Reset

procedure Reset; overload; inline