diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-07-16 19:29:32 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-07-16 19:29:32 -0700 |
commit | dc9247c4343ceb1e8d8bbd38d8e10bf9ebd765b7 (patch) | |
tree | b9d5ec72695bfb2490b14c36a38f4a5fd9111ff4 /ffi.h | |
parent | 2411f779f47c441659720ad0ddcabf91df1d2529 (diff) | |
download | txr-dc9247c4343ceb1e8d8bbd38d8e10bf9ebd765b7.tar.gz txr-dc9247c4343ceb1e8d8bbd38d8e10bf9ebd765b7.tar.bz2 txr-dc9247c4343ceb1e8d8bbd38d8e10bf9ebd765b7.zip |
ffi: add offset argument to ffi buffer functions.
* ffi.c (ffi_put_into, ffi_in, ffi_get, ffi_out): New offset
parameter.
(ffi_init): Re-register ffi-put-into, ffi-in, ffi-get and
ffi-out with new optional parameter.
* ffi.c (ffi_put_into, ffi_in, ffi_get, ffi_out): Declarations
updated.
* txr.1: Documented new argument on ffi-put-into, ffi-in
and ffi-get. The documentation for ffi-out doesn't exist!
Diffstat (limited to 'ffi.h')
-rw-r--r-- | ffi.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -85,11 +85,11 @@ val ffi_offsetof(val type, val memb); val ffi_arraysize(val type); val ffi_elemsize(val type); val ffi_elemtype(val type); -val ffi_put_into(val dstbuf, val obj, val type); +val ffi_put_into(val dstbuf, val obj, val type, val offset); val ffi_put(val obj, val type); -val ffi_in(val srcbuf, val obj, val type, val copy_p); -val ffi_get(val srcbuf, val type); -val ffi_out(val dstbuf, val obj, val type, val copy_p); +val ffi_in(val srcbuf, val obj, val type, val copy_p, val offset); +val ffi_get(val srcbuf, val type, val offset); +val ffi_out(val dstbuf, val obj, val type, val copy_p, val offset); val make_carray(val type, mem_t *data, cnum nelem, val ref, cnum offs); val carrayp(val obj); val carray_set_length(val carray, val nelem); |