Message43138
Logged In: YES
user_id=341410
Right. The question that Martin had was if you have some
mmap that has been mapped some offset into the large file,
and you do mmap.find(...), do you return an offset relative
to the file on disk, or relative to the mmap?
So if I have m = mmap.mmap(..., startoffset=1024,
length=1024), and I do m.find('X'), do I get some value
-1...1023 inclusive (-1 for not found), or do I get some
value 1024...2047 or -1? I think it only makes sense to
return -1...1023, so that the return for .find() and other
operations are relative to the mmap, not the file. |
|
Date |
User |
Action |
Args |
2007-08-23 15:21:31 | admin | link | issue708374 messages |
2007-08-23 15:21:31 | admin | create | |
|