Fingerprint, CompareMemory and other functions using Offset
Posted: Wed Jan 03, 2018 10:24 pm
Greetings to all,
can anyone give some additional clarification regarding those? All examples in help are wrong and can't be used.
For example:
CompareMemory has wrong declaration in help file, to begin with, without example. IDE reports function takes 5 parameters (source pointer, source offset, destination pointer, destination offset and length).
can anyone give some additional clarification regarding those? All examples in help are wrong and can't be used.
For example:
Code: Select all
Result$ = Fingerprint(*Buffer, Offset, Size, Plugin [, Bits])
Code: Select all
UseMD5Fingerprint()
*Buffer = AllocateMemory(500)
If *Buffer
PokeS(*Buffer, "The quick brown fox jumps over the lazy dog.", -1, #PB_Ascii)
MD5$ = Fingerprint(*Buffer, MemoryStringLength(*Buffer, #PB_Ascii), #PB_Cipher_MD5)
Debug "MD5 Fingerprint = " + MD5$
FreeMemory(*Buffer) ; would also be done automatically at the end of the program
EndIf