diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-15 06:58:43 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-15 06:58:43 -0700 |
commit | e227120527ab35fa9a8c5356296bb799f62d0c86 (patch) | |
tree | 61865398b048b67defaa1cfad71667327e4e8a9f /txr.1 | |
parent | 013f02eb6ddcf08e4ffaf0cf5fb11fd078ca484a (diff) | |
download | txr-e227120527ab35fa9a8c5356296bb799f62d0c86.tar.gz txr-e227120527ab35fa9a8c5356296bb799f62d0c86.tar.bz2 txr-e227120527ab35fa9a8c5356296bb799f62d0c86.zip |
ffi: new put-carray and fill-carray functions.
* ffi.c (put_carray, fill_carray): New functions.
(ffi_init): put-carray and fill-carray intrinsics
registered.
* ffi.h (put_carray, fill_carray): Declared.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -57175,6 +57175,45 @@ of the bytes are .codn #xFF , the value -1 is returned. +.coNP Functions @ fill-carray and @ put-carray +.synb +.mets (fill-array < carray >> [ pos <> [ stream ]]) +.mets (put-array < carray >> [ pos <> [ stream ]]) +.syne +.desc +The +.code fill-array +and +.code put-array +functions perform stream output using the +.code carray +object as a buffer. + +The semantics of these functions is as follows. +A temporary buffer is created which aliases the storage of +.meta carray +and this buffer is used as an argument in an invocation of, respectively, +the buffer I/O function +.meta fill-buf +or +.metn put-buf . + +The value returned by buffer I/O function is returned. + +The +.meta pos +and +.meta stream +arguments are defaulted exactly in the same manner as by +.code fill-buf +and +.codn put-buf , +and have the same meaning. In particular, +.meta pos +indicates a byte offset into the +.meta carray +object's storage, not an array index. + .SH* INTERACTIVE LISTENER .SS* Overview |