638
edits
(→References: rm superfluous sentence) |
m (→The types provided by ctypes: typo) |
||
| Line 114: | Line 114: | ||
:'''<code>ctypes.string, ustring</code>''' - String types. The C/C++ type for <code>ctypes.string</code> is <code>const char *</code>. C/C++ values of this type must be either <code>null</code> or pointers to null-terminated strings. <code>ctypes.ustring</code> is the same, but for <code>const jschar *</code>; that is, the code units of the string are <code>uint16_t</code>. | :'''<code>ctypes.string, ustring</code>''' - String types. The C/C++ type for <code>ctypes.string</code> is <code>const char *</code>. C/C++ values of this type must be either <code>null</code> or pointers to null-terminated strings. <code>ctypes.ustring</code> is the same, but for <code>const jschar *</code>; that is, the code units of the string are <code>uint16_t</code>. | ||
:'''< | :'''<code>ctypes.void_t</code>''' - The special C type <code>void</code>. This can be used as a return value type. (<code>void</code> is a keyword in JavaScript.) | ||
Starting from those builtin types, ctypes can create additional types: | Starting from those builtin types, ctypes can create additional types: | ||
edits