Commit c054d187 authored by gabrieldemarmiesse's avatar gabrieldemarmiesse

Added the C array conversion to and from python.

parent 084a25f5
......@@ -556,6 +556,8 @@ possibilities.
+----------------------------+--------------------+------------------+
| char* | str/bytes | str/bytes [#]_ |
+----------------------------+--------------------+------------------+
| C array | iterable | list [#2]_ |
+----------------------------+--------------------+------------------+
| struct, | | dict [#1]_ |
| union | | |
+----------------------------+--------------------+------------------+
......@@ -568,6 +570,10 @@ possibilities.
combinations. An example is a union of an ``int`` and a ``char*``,
in which case the pointer value may or may not be a valid pointer.
.. [#2] Other than signed/unsigned char[].
The conversion will fail if the length of C array is not known at compile time,
and when using a slice of a C array.
Caveats when using a Python string in a C context
-------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment