diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-07-05 06:22:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-07-05 06:22:38 -0700 |
commit | 5a3b0bba720a3edf72a6c85010727078ce985413 (patch) | |
tree | fbf92a354468e857abd80d90278752d14cf0b608 /txr.1 | |
parent | e8472375ec4db62befaf87b1e85506234001e530 (diff) | |
download | txr-5a3b0bba720a3edf72a6c85010727078ce985413.tar.gz txr-5a3b0bba720a3edf72a6c85010727078ce985413.tar.bz2 txr-5a3b0bba720a3edf72a6c85010727078ce985413.zip |
New function: buf-put-buf.
* buf.c (buf_move_bytes): New static function.
(buf_put_buf): New function.
(buf_init): Register buf-put-buf intrinsic.
* buf.h (buf_put_buf): Declared.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -23829,6 +23829,35 @@ The of the arguments, semantics and return value given for apply to .codn replace-buf . +.coNP Function @ buf-put-buf +.synb +.mets (buf-put-buf < dst-buf < pos << src-buf ) +.syne +.desc +The +.code buf-put-buf +function stores a copy of buffer +.meta src-buf +into +.meta dst-buf +at the offset indicated by +.metn pos . + +The source and destination memory regions may overlap. + +The return value is +.metn src-buf . + +Note: the effect of a +.code buf-put-buf +operation may also be performed by a suitable call to +.codn replace-buf ; +however, +.code buf-put-buf +is less general: it doesn't insert or delete by replacing +destination ranges with data of differing length, +and requires a source operand of buffer type. + .coNP Function @ buf-put-i8 .synb .mets (buf-put-i8 < buf < pos << val ) |