emacs-devel
[Top][All Lists]
Advanced

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

Re: Some dynamic module questions


From: Zhu Zihao
Subject: Re: Some dynamic module questions
Date: Fri, 27 Nov 2020 20:17:59 +0800
User-agent: mu4e 1.4.13; emacs 27.1

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.


-- 
Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp

Zihao

Attachment: signature.asc
Description: PGP signature


reply via email to

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