Skip to main content

isNotOverlapping

Short summary​

This assertion method checks if memory areas are overlapping

Parameters​

NameTypeCommentKind
address1PVOIDmemory addressinput
address2PVOIDmemory addressinput
sizeInBytes1UDINTthe size of the memory area identified by address1input
sizeInBytes2UDINTthe size of the memory area identified by address2input
messageAssertMessagemessage if the assertion is falseinput

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