Declarations ​
pascal
function GetOptimalReflect(Max: Integer): TWrapProc; overload;
function GetOptimalReflect(Min, Max: Integer): TWrapProcEx; overload;Overload Details
Overload 1 ​
pascal
function GetOptimalReflect(Max: Integer): TWrapProc; overload;Returns optimal TWrapProc delegate for reflection in range [0..Max].
| Parameter | Type | Description |
|---|---|---|
Max | Integer | Upper range boundary. |
| Type | Description |
|---|---|
TWrapProc | Reflect procedure delegate (Reflect or ReflectPow2). |
Overload 2 ​
pascal
function GetOptimalReflect(Min, Max: Integer): TWrapProcEx; overload;Returns optimal TWrapProcEx delegate for reflection in range [Min..Max].
| Parameter | Type | Description |
|---|---|---|
Min | Integer | Lower range boundary. |
Max | Integer | Upper range boundary. |
| Type | Description |
|---|---|
TWrapProcEx | Reflect procedure delegate (Reflect or ReflectPow2). |
Description ​
GetOptimalReflect tests whether the specified range length is a power of two and returns either ReflectPow2 or Reflect.