[Baypiggies] mmap question
K. Richard Pixley
rich at noir.com
Sat Dec 18 07:12:36 CET 2010
It's like magic! I post... and immediately the answer comes to me. *sigh*
Thanks for, um, being here for me. :).
On 20101217 21:54, K. Richard Pixley wrote:
> Ok, I'm stumped.
> I have two files. They are the same size and I've mmaped them both
> into xmap and ymap. I'd like to compare their contents but without
> copying them into yet another chunk of memory before I do so. There
> should be a way to bitblt these things.
> The only things I can think to do involve forcing a string copy first.
> xmap[:] == ymap[:]
> bytearray(xmap) == bytearray(ymap)
> xmap.read() == ymap.read()
> Can anyone think of a way to do this without first copying them to
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies