anatoly techtonik <[email protected]> added the comment:
ISTM that this code works ok.
data = open('data.raw', 'rb').read()
ret = checkBuffer(data, len(data))
You need to make sure that checkBuffer doesn't try to modify memory though. For
mutable memory blocks use create_string_buffer().
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12476>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com