summaryrefslogtreecommitdiffstatshomepage
path: root/docs/source/luascript
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/luascript')
-rw-r--r--docs/source/luascript/ref-mem.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/source/luascript/ref-mem.rst b/docs/source/luascript/ref-mem.rst
index 24c16670c47..0987889d3dc 100644
--- a/docs/source/luascript/ref-mem.rst
+++ b/docs/source/luascript/ref-mem.rst
@@ -419,6 +419,12 @@ manager.machine.devices[tag]:memregion(tag)
Methods
~~~~~~~
+region:read(offs, len)
+ Reads up to the specified length in bytes from the specified offset in the
+ memory region. The bytes read will be returned as a string. If the
+ specified length extends beyond the end of the memory region, the returned
+ string will be shorter than requested. Note that the data will be in host
+ byte order.
region:read_i{8,16,32,64}(offs)
Reads a signed integer value of the size in bits from the specified offset
in the memory region. The offset is specified in bytes. Reading beyond the