diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-08-08 12:27:11 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-08-08 12:27:11 -0700 |
commit | 46bc67ee1b42f8f7587e87b0ba604e0541bd24f1 (patch) | |
tree | d49347325e08425e4f3cf46670c6f00bc0556184 /txr.1 | |
parent | 391abdde2d48aac8fc18978a1f3a26b9f0ae6bc8 (diff) | |
download | txr-46bc67ee1b42f8f7587e87b0ba604e0541bd24f1.tar.gz txr-46bc67ee1b42f8f7587e87b0ba604e0541bd24f1.tar.bz2 txr-46bc67ee1b42f8f7587e87b0ba604e0541bd24f1.zip |
ffi: new buf-carray function.
* ffi.c (buf_carray): New function.
(ffi_init): Registered buf-carray intrinsic.
* ffi.c (buf_carray): Declared.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -58598,6 +58598,24 @@ length of .meta carray are altered to reflect the current state of the buffer. +.coNP Function @ buf-carray +.synb +.mets (buf-carray << carray ) +.syne +.desc +The +.code buf-carray +function duplicates the underlying storage of +.meta carray +and returns that storage represented as an object of +.code buf +type. + +The storage size is calculated by multiplying the +.code carray +object's element size by the number of elements. +Only that extent of the storage is duplicated. + .coNP Function @ carray-cptr .synb .mets (carray-cptr < cptr < type <> [ length ]) |