<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Ok, I'm stumped.<br>
    <br>
    I have two files.&nbsp; They are the same size and I've mmaped them both
    into xmap and ymap.&nbsp; I'd like to compare their contents but without
    copying them into yet another chunk of memory before I do so.&nbsp; There
    should be a way to bitblt these things.<br>
    <br>
    The only things I can think to do involve forcing a string copy
    first.<br>
    <blockquote><tt>xmap[:] == ymap[:]</tt><br>
      <tt>bytearray(xmap) == bytearray(ymap)</tt><br>
      <tt>xmap.read() == ymap.read()</tt><br>
    </blockquote>
    Can anyone think of a way to do this without first copying them to
    strings?<br>
    <br>
    --rich<br>
    <br>
    <br>
  </body>
</html>