Commit 7a70b2c4 authored by Mark Dickinson's avatar Mark Dickinson

Issue #8469: add standard sizes to struct docs table.

parent ac1a50b5
...@@ -87,46 +87,46 @@ Format Characters ...@@ -87,46 +87,46 @@ Format Characters
Format characters have the following meaning; the conversion between C and Format characters have the following meaning; the conversion between C and
Python values should be obvious given their types: Python values should be obvious given their types:
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| Format | C Type | Python | Notes | | Format | C Type | Python type | Standard size | Notes |
+========+=========================+====================+============+ +========+=========================+====================+================+============+
| ``x`` | pad byte | no value | | | ``x`` | pad byte | no value | | |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``c`` | :ctype:`char` | bytes of length 1 | | | ``c`` | :ctype:`char` | bytes of length 1 | 1 | |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``b`` | :ctype:`signed char` | integer | \(1),\(4) | | ``b`` | :ctype:`signed char` | integer | 1 | \(1),\(4) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``B`` | :ctype:`unsigned char` | integer | \(4) | | ``B`` | :ctype:`unsigned char` | integer | 1 | \(4) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``?`` | :ctype:`_Bool` | bool | \(2) | | ``?`` | :ctype:`_Bool` | bool | 1 | \(2) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``h`` | :ctype:`short` | integer | \(4) | | ``h`` | :ctype:`short` | integer | 2 | \(4) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``H`` | :ctype:`unsigned short` | integer | \(4) | | ``H`` | :ctype:`unsigned short` | integer | 2 | \(4) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``i`` | :ctype:`int` | integer | \(4) | | ``i`` | :ctype:`int` | integer | 4 | \(4) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``I`` | :ctype:`unsigned int` | integer | \(4) | | ``I`` | :ctype:`unsigned int` | integer | 4 | \(4) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``l`` | :ctype:`long` | integer | \(4) | | ``l`` | :ctype:`long` | integer | 4 | \(4) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``L`` | :ctype:`unsigned long` | integer | \(4) | | ``L`` | :ctype:`unsigned long` | integer | 4 | \(4) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``q`` | :ctype:`long long` | integer | \(3), \(4) | | ``q`` | :ctype:`long long` | integer | 8 | \(3), \(4) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``Q`` | :ctype:`unsigned long | integer | \(3), \(4) | | ``Q`` | :ctype:`unsigned long | integer | 8 | \(3), \(4) |
| | long` | | | | | long` | | | |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``f`` | :ctype:`float` | float | | | ``f`` | :ctype:`float` | float | 4 | |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``d`` | :ctype:`double` | float | | | ``d`` | :ctype:`double` | float | 8 | |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``s`` | :ctype:`char[]` | bytes | \(1) | | ``s`` | :ctype:`char[]` | bytes | | \(1) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``p`` | :ctype:`char[]` | bytes | \(1) | | ``p`` | :ctype:`char[]` | bytes | | \(1) |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
| ``P`` | :ctype:`void \*` | integer | | | ``P`` | :ctype:`void \*` | integer | | |
+--------+-------------------------+--------------------+------------+ +--------+-------------------------+--------------------+----------------+------------+
Notes: Notes:
......
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