Lisp HUG Maillist Archive

Q: Enhanced fli:replace-foreign-array

Hello lispworkers,

The fli:replace-foreign-array function provides a nice possibility to copy
between a Lisp object and foreign pointers. Unfortunately,
(1) it does not works with strings,
(2) it does not support :wchar-t arrays.

AFAIR, if I dealt with static Lisp strings, I could compose
fli:with-dynamic-lisp-array-pointer and fli:replace-foreign-object. But I
have to use non-static strings.

Is there any low-level function copying from one memory location to another
that could handle
    lw:text-string <-> #<Pointer to type :wchar-t>
    base-string <-> #<Pointer to type :char> ?
--
Sincerely,
Dmitriy Ivanov
lisp.ystok.ru


Updated at: 2020-12-10 08:53 UTC