From: Zhu Zihao <all_but_last@163.com>
To: Helmut Eller <eller.helmut@gmail.com>
Cc: Philipp Stephani <p.stephani2@gmail.com>, emacs-devel@gnu.org
Subject: Re: Some dynamic module questions
Date: Fri, 27 Nov 2020 20:17:59 +0800 [thread overview]
Message-ID: <86k0u79eo8.fsf@163.com> (raw)
In-Reply-To: <m2o8jj57po.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 510 bytes --]
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 515 bytes --]
next prev parent reply other threads:[~2020-11-27 12:17 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-27 10:43 Some dynamic module questions Helmut Eller
2020-11-27 11:50 ` Philipp Stephani
2020-11-27 12:01 ` Helmut Eller
2020-11-27 12:17 ` Zhu Zihao [this message]
2020-11-27 12:25 ` Helmut Eller
2020-11-27 12:47 ` Eli Zaretskii
2020-11-27 12:59 ` Helmut Eller
2020-11-27 13:29 ` Eli Zaretskii
2020-11-27 13:32 ` Eli Zaretskii
2020-11-27 13:54 ` Vasilij Schneidermann
2020-11-27 15:09 ` Eli Zaretskii
2020-11-27 15:21 ` Vasilij Schneidermann
2020-11-27 15:26 ` Eli Zaretskii
2020-12-02 11:43 ` Philipp Stephani
2020-12-03 5:30 ` Richard Stallman
2020-12-03 8:08 ` Lars Ingebrigtsen
2020-12-03 8:42 ` Helmut Eller
2020-12-03 11:49 ` Philipp Stephani
2020-12-03 15:13 ` Stefan Monnier
2020-12-06 17:04 ` Philipp Stephani
2020-11-27 14:06 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86k0u79eo8.fsf@163.com \
--to=all_but_last@163.com \
--cc=eller.helmut@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=p.stephani2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.