summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-08-08 12:27:11 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-08-08 12:27:11 -0700
commit46bc67ee1b42f8f7587e87b0ba604e0541bd24f1 (patch)
treed49347325e08425e4f3cf46670c6f00bc0556184 /txr.1
parent391abdde2d48aac8fc18978a1f3a26b9f0ae6bc8 (diff)
downloadtxr-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.118
1 files changed, 18 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index e005a34b..d3ea01b9 100644
--- a/txr.1
+++ b/txr.1
@@ -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 ])