From fccbed7657675a5e1c4c63fff08c61ab24964be2 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 2 Nov 2023 02:08:05 +1100 Subject: Miscellaneous fixes: * docs: Added option for Wayland support to compiling guide. * docs: Clarified behaviour of memory region read/write methods. * Fixed some editing errors in Turkish UI translation. * Added some parentheses on ternary conditional operators for clarity. --- docs/source/luascript/ref-mem.rst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'docs/source/luascript') diff --git a/docs/source/luascript/ref-mem.rst b/docs/source/luascript/ref-mem.rst index 2222a785e24..24c16670c47 100644 --- a/docs/source/luascript/ref-mem.rst +++ b/docs/source/luascript/ref-mem.rst @@ -421,16 +421,20 @@ Methods 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. + in the memory region. The offset is specified in bytes. Reading beyond the + end of the memory region returns zero. region:read_u{8,16,32,64}(offs) Reads an unsigned integer value of the size in bits from the specified - offset in the memory region. + offset in the memory region. The offset is specified in bytes. Reading + beyond the end of the memory region returns zero. region:write_i{8,16,32,64}(offs, val) Writes a signed integer value of the size in bits to the specified offset in - the memory region. + the memory region. The offset is specified in bytes. Attempting to write + beyond the end of the memory region has no effect. region:write_u{8,16,32,64}(offs, val) Writes an unsigned integer value of the size in bits to the specified offset - in the memory region. + in the memory region. The offset is specified in bytes. Attempting to + write beyond the end of the memory region has no effect. Properties ~~~~~~~~~~ -- cgit v1.2.3-70-g09d2