Skip to content

Commit ec1b1cf

Browse files
author
Paul Sokolovsky
committed
docs: uctypes: Describe couple more functions.
1 parent dfad7f4 commit ec1b1cf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/library/uctypes.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ Module contents
115115
Native structure - with data endianness and alignment conforming to
116116
the target ABI.
117117

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+
118129
(to be continued)
119130

120131
Structure objects

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy