H
Haralanov, Mitko
Hi all,
I am using Python to read from a binary device file which requires that allread sizes are in 8byte multiples and the user's buffer is 8byte aligned.
I am currently using a file object and the file.read() method. However, theissue is that the file.read() method allocates the buffer passed to C function under the covers and, therefore, the alignment is arbitrary.
Is there a way that I can get file.read() to use an 8byte aligned buffer?
Thanks,
- Mitko
I am using Python to read from a binary device file which requires that allread sizes are in 8byte multiples and the user's buffer is 8byte aligned.
I am currently using a file object and the file.read() method. However, theissue is that the file.read() method allocates the buffer passed to C function under the covers and, therefore, the alignment is arbitrary.
Is there a way that I can get file.read() to use an 8byte aligned buffer?
Thanks,
- Mitko