Message139675
ctypes documentation lacks an example, how to pass a raw data block from Python to a C function. For example, how to pass this chunk:
data = open('somefile', 'rb').read()
to this function:
int checkBuffer(LPSTR lpData, DWORD dwBufferLength);
? |
|
Date |
User |
Action |
Args |
2011-07-03 08:02:37 | techtonik | set | recipients:
+ techtonik, docs@python |
2011-07-03 08:02:37 | techtonik | set | messageid: <1309680157.38.0.0819979072917.issue12476@psf.upfronthosting.co.za> |
2011-07-03 08:02:36 | techtonik | link | issue12476 messages |
2011-07-03 08:02:36 | techtonik | create | |
|