Compare @size bytes starting from @offset in @buffer with the memory in @mem.
the offset in @buffer
the memory to compare
0 if the memory is equal.
See Implementation
Compare @size bytes starting from @offset in @buffer with the memory in @mem.