summaryrefslogtreecommitdiffstatshomepage
path: root/examples/unix/ffi_example.py
Commit message (Collapse)AuthorAge
* all: Reformat C and Python source code with tools/codeformat.py.Damien George2020-02-28
| | | | This is run with uncrustify 0.70.1, and black 19.10b0.
* examples/unix/ffi_example: Clean up and update the ffi example.Paul Sokolovsky2018-10-23
| | | | | | | | | | | | | | | | | | | 1. Use uctypes.bytearray_at(). Implementation of the "ffi" module predates that of "uctypes", so initially some convenience functions to access memory were added to ffi. Later, they landed in uctypes (which follows CPython's ctype module). So, replace undocumented experimental functions from ffi to documented ones from uctypes. 2. Use more suitable type codes for arguments (e.g. "P" (const void*) instead of "p" (void*). 3. Some better var naming. 4. Clarify some messages printed by the example.
* examples/unix/ffi_example.py: Remove TODO, make output more clear.Paul Sokolovsky2016-06-17
|
* examples/unix/ffi_example.py: Update for current "ffi" module API.Paul Sokolovsky2016-06-17
|
* ffi: Implement ffivar.get()/set() methods.Paul Sokolovsky2014-02-14
| | | | | Done by introducing another factored out helper API in binary.c. This API can be reused also by array and struct modules.
* Add FFI module example.Paul Sokolovsky2014-01-29