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
c260836b
Commit
c260836b
authored
Mar 27, 2015
by
Paul Sokolovsky
Browse files
docs: uctypes: Describe bytes_at(), bytearray_at().
parent
1eba62ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/library/uctypes.rst
View file @
c260836b
...
...
@@ -126,7 +126,19 @@ Module contents
other object supporting buffer protocol (and address of this buffer
is what actually returned).
(to be continued)
.. function:: bytes_at(addr, size)
Capture memory at the given address and size as bytes object. As bytes
object is immutable, memory is actually duplicated and copied into
bytes object, so if memory contents change later, created object
retains original value.
.. function:: bytearray_at(addr, size)
Capture memory at the given address and size as bytearray object.
Unlike bytes_at() function above, memory is captured by reference,
so it can be both written too, and you will access current value
at the given memory address.
Structure objects
-----------------
...
...
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