isNotOverlapping
Short summary
This assertion method checks if memory areas are overlapping
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| address1 | PVOID | memory address | input |
| address2 | PVOID | memory address | input |
| sizeInBytes1 | UDINT | the size of the memory area identified by address1 | input |
| sizeInBytes2 | UDINT | the size of the memory area identified by address2 | input |
| message | AssertMessage | message if the assertion is false | input |
Code
Declaration
METHOD isNotOverlapping
VAR_INPUT
(* memory address *)
address1 :PVOID;
(* memory address *)
address2 :PVOID;
(*the size of the memory area identified by address1*)
sizeInBytes1 :UDINT;
(*the size of the memory area identified by address2*)
sizeInBytes2 :UDINT;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR