summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-20 07:37:42 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-20 07:37:42 -0700
commit6d8f4f8f500c8e8d36ff66a1160788042e219b61 (patch)
tree27af96725c9b21049327f26042f3b1808f239032 /txr.1
parent92f85ff3b8a5ff6da61dd8ea2710e16a017fafbc (diff)
downloadtxr-6d8f4f8f500c8e8d36ff66a1160788042e219b61.tar.gz
txr-6d8f4f8f500c8e8d36ff66a1160788042e219b61.tar.bz2
txr-6d8f4f8f500c8e8d36ff66a1160788042e219b61.zip
ffi: new carray-buf-sync function.
* ffi.c (carray_buf_sync): New function. (ffi_init): carray-buf-sync intrinsic registered. * ffi.h (carray_buf_sync): Declared. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.127
1 files changed, 27 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 4de55690..df361b52 100644
--- a/txr.1
+++ b/txr.1
@@ -54968,6 +54968,33 @@ type, the calculated number of elements is rounded down. The trailing portion
of the buffer corresponding to the division remainder, being insufficient
to constitute a whole array element, is excluded from the array view.
+.coNP Function @ carray-buf-sync
+.synb
+.mets (carray-buf-sync << carray )
+.syne
+.desc
+The
+.code carray-buf-sync
+function requires
+.meta carray
+to be a
+.code carray
+object which refers to a
+.code buf
+object for its storage. Such objects are created by the function
+.codn carray-buf .
+
+The
+.code carray-buf-sync
+function retrieves and returns the buffer object associated with
+.meta carray
+and at the same time also updates the internal properties of
+.meta carray
+using the current information: the pointer to the data, and the
+length of
+.meta carray
+are altered to reflect the current state of the buffer.
+
.coNP Function @ carray-cptr
.synb
.mets (carray-cptr < cptr < type <> [ length ])