We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfad7f4 commit ec1b1cfCopy full SHA for ec1b1cf
docs/library/uctypes.rst
@@ -115,6 +115,17 @@ Module contents
115
Native structure - with data endianness and alignment conforming to
116
the target ABI.
117
118
+.. function:: sizeof(struct)
119
+
120
+ Return size of data structure in bytes. Argument can be either structure
121
+ class or specific instantiated structure object (or its field).
122
123
+.. function:: addressof(obj)
124
125
+ Return address of an object. Argument should be bytes, bytearray or
126
+ other object supporting buffer protocol (and address of this buffer
127
+ is what actually returned).
128
129
(to be continued)
130
131
Structure objects
0 commit comments