emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some dynamic module questions


From: Helmut Eller
Subject: Re: Some dynamic module questions
Date: Fri, 27 Nov 2020 13:25:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On Fri, Nov 27 2020, Zhu Zihao wrote:

> Helmut Eller writes:
>
>> But that's only for passing bytes from C to Lisp.  What about the other
>> direction?  Will there be something like copy_unibyte_string_contents?
>> Or preferably something that doesn't need copying and just gives a const
>> char* pointer to the bytes.
>
> unibytes string are actually vector of u8. you can convert to vector(use
> vconcat from Lisp side)
> first then read it using vec_get and vec_set.

Yes, that will be good enough for now. Thanks.

Helmut



reply via email to

[Prev in Thread] Current Thread [Next in Thread]