Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTBUFF

CTBUFF_Comp
Description
Compares the CTBUFF instance with a buffer zone . The method performs a byte per byte copy. This is why a comparison with another CTBUFF will not return reliable results since the instance's value will be compared against the implementation of the CTBUFF against which it is being compared. When comparing two CTBUFF instances, use the CTBUFF_BuffComp method.

Prototype

			
     DCTBUFF_Comp...
     D                 PR            10I 0
     D@This                            *   Value
     D@Str                             *   Value
     D@Len                           10I 0 Value
						
Parameters
@This
TypePointer (*)
Passing ModeValue
Description The address of an CTBUFF instance. This pointer MUST be obtained through a call to CTBUFF_Constructor.
@Str
TypePointer (*)
Passing ModeValue
DescriptionThe address of a buffer that holds the comparison pattern against which the CTBUFF value will be compared.
@Len
Type10I 0
Passing ModeValue
DescriptionThe length in bytes of the comaprison patter. If the comparison pattern is a character string, then the actual pattern length may be greater than the string length (if the string is UTF-8 for instance). Make sure you specify the length in bytes, not the length in characters.
Return Values

Symbolic ConstantValueDescription
N/A1The values of the buffer in @This is greater than the value of the buffer pointed to by @Buff
N/A0The values of the buffer in @This is greater than the value of the buffer pointed to by @Buff
N/A-1The values of the buffer in @This is lower than the value of the buffer pointed to by @Buff