VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



FYI: vbMemCompare (RTLMemCompare, MemCmp Alternative)

by LaVolpe (66 Submissions)
Category: Miscellaneous
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (11 Votes)

Want to compare 2 same-size bitmaps for equality? Want to compare 2 arrays for equality (even if arrays are different VarTypes)? NT-based systems have RTLCompareMemory, C has MemCmp. Win9x is reduced to byte by byte loops, more or less. This twist on that loop process comes really close to matching the speed of the two aforementioned API functions and can be used in every O/S. Thought I could use this for a project of mine, but the requirement went away. Compile the project for true tests (IDE is always slower). As always, stuffed with lots of comments.

Rate FYI: vbMemCompare (RTLMemCompare, MemCmp Alternative)

Download FYI: vbMemCompare (RTLMemCompare, MemCmp Alternative)

Download FYI: vbMemCompare (RTLMemCompare, MemCmp Alternative) (8 KB)

FYI: vbMemCompare (RTLMemCompare, MemCmp Alternative) Comments

No comments have been posted about FYI: vbMemCompare (RTLMemCompare, MemCmp Alternative). Why not be the first to post a comment about FYI: vbMemCompare (RTLMemCompare, MemCmp Alternative).

Post your comment

Subject:
Message:
0/1000 characters