aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Pall <mike>2011-02-07 23:49:27 +0100
committerMike Pall <mike>2011-02-07 23:49:27 +0100
commit7a37b93f1b40ba83cc68965b1c80c35363c1493d (patch)
treed60ad18e47839b3998e1191672249735c46a99cc /doc
parentfb53d4aeb7590e0e8437b03589ef68adf4611570 (diff)
downloadluajit-7a37b93f1b40ba83cc68965b1c80c35363c1493d.tar.gz
luajit-7a37b93f1b40ba83cc68965b1c80c35363c1493d.tar.bz2
luajit-7a37b93f1b40ba83cc68965b1c80c35363c1493d.zip
FFI: Record ffi.copy() and ffi.fill().
Diffstat (limited to 'doc')
-rw-r--r--doc/ext_ffi_api.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/ext_ffi_api.html b/doc/ext_ffi_api.html
index f0c4de90..7c2e53dd 100644
--- a/doc/ext_ffi_api.html
+++ b/doc/ext_ffi_api.html
@@ -312,13 +312,13 @@ is converted to a <tt>"const void&nbsp;*"</tt>.
312</p> 312</p>
313<p> 313<p>
314In the first syntax, <tt>len</tt> gives the number of bytes to copy. 314In the first syntax, <tt>len</tt> gives the number of bytes to copy.
315In case <tt>src</tt> is a Lua string, the maximum copy length is the 315Caveat: if <tt>src</tt> is a Lua string, then <tt>len</tt> must not
316number of bytes of the string plus a zero-terminator. Caveat: the 316exceed <tt>#src+1</tt>.
317copied data may not be zero-terminated if <tt>len&nbsp;&le;&nbsp;#src</tt>.
318</p> 317</p>
319<p> 318<p>
320In the second syntax, the source of the copy must be a Lua string. All 319In the second syntax, the source of the copy must be a Lua string. All
321bytes of the string plus a zero-terminator are copied to <tt>dst</tt>. 320bytes of the string <em>plus a zero-terminator</em> are copied to
321<tt>dst</tt> (i.e. <tt>#src+1</tt> bytes).
322</p> 322</p>
323<p> 323<p>
324Performance notice: <tt>ffi.copy()</tt> may be used as a faster 324Performance notice: <tt>ffi.copy()</tt> may be used as a faster