Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
06e85ecf
Commit
06e85ecf
authored
Jun 06, 2015
by
Paul Sokolovsky
Browse files
docs/uctype: Update for constructor argument order changes.
Also, other small cleanups/improvements.
parent
16796966
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/library/uctypes.rst
View file @
06e85ecf
...
...
@@ -96,16 +96,15 @@ Following are encoding examples for various field types:
Module contents
---------------
.. class:: struct(descriptor,
addr,
layout_type=NATIVE)
.. class:: struct(
addr,
descriptor, layout_type=NATIVE)
Instantiate a "foreign data structure" object based on structure descriptor
(encoded as a dictionary), layout type (see below), and actual structure
address.
Instantiate a "foreign data structure" object based on structure address in
memory, descriptor (encoded as a dictionary), and layout type (see below).
.. data:: LITTLE_ENDIAN
Little-endian packed structure. (Packed means that every field occupies
exactly many bytes as defined in the descriptor, i.e. alignment is 1).
exactly
as
many bytes as defined in the descriptor, i.e. alignment is 1).
.. data:: BIG_ENDIAN
...
...
@@ -114,12 +113,12 @@ Module contents
.. data:: NATIVE
Native structure - with data endianness and alignment conforming to
the
target ABI
.
the
ABI of the system on which MicroPython runs
.
.. function:: sizeof(struct)
Return size of data structure in bytes. Argument can be either structure
class or specific instantiated structure object (or its field).
class or specific instantiated structure object (or its
aggregate
field).
.. function:: addressof(obj)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment