summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-03-24 22:35:11 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-03-24 22:42:54 +0200
commitec1b1cf834462635be578d1f4a3da9dafca7ff8f (patch)
treec6e5b41cd863c11ff9daf7ed8b36b021d24238be
parentdfad7f471a43d3a569e3f004651def6d88798259 (diff)
downloadmicropython-ec1b1cf834462635be578d1f4a3da9dafca7ff8f.tar.gz
micropython-ec1b1cf834462635be578d1f4a3da9dafca7ff8f.zip
docs: uctypes: Describe couple more functions.
-rw-r--r--docs/library/uctypes.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/library/uctypes.rst b/docs/library/uctypes.rst
index cd5db114c1..322946072d 100644
--- a/docs/library/uctypes.rst
+++ b/docs/library/uctypes.rst
@@ -115,6 +115,17 @@ Module contents
Native structure - with data endianness and alignment conforming to
the target ABI.
+.. function:: sizeof(struct)
+
+ Return size of data structure in bytes. Argument can be either structure
+ class or specific instantiated structure object (or its field).
+
+.. function:: addressof(obj)
+
+ Return address of an object. Argument should be bytes, bytearray or
+ other object supporting buffer protocol (and address of this buffer
+ is what actually returned).
+
(to be continued)
Structure objects