This gist demonstrates how to expose the raw bytes encapsulated by several Python container classes to a C function using Cython.
- Make sure you have Cython installed.
- Build the included extension by running make.
- Run the demo file test.py.
This software is licensed under the BSD License by Lev Givon.
don't forget to
PyBuffer_Release(&buf)