ctypes buffer modification

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-03-19T19:55:08Z Indexed on 2010/03/19 20:01 UTC
Read the original article Hit count: 206

Filed under:
|

Hi,

I need to call a c library from my python code. The c library does a lot of image manipulation, so I am passing it image buffers allocated using create_string_buffer.

The problem is that I also need to manipulate and change these buffers. What is the best way to reach in and twiddle individual values in my buffers? The buffers are all uint8 buffers.

Thanks!

© Stack Overflow or respective owner

Related posts about python

Related posts about ctypes