From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: creating unibyte strings Date: Sun, 24 Mar 2019 19:10:51 +0200 Message-ID: <83ftrcnqp0.fsf@gnu.org> References: <83y3b4wdw9.fsf@gnu.org> <83tvhal45r.fsf@gnu.org> <83h8bwt1on.fsf@gnu.org> <83bm24t0hv.fsf@gnu.org> <83wokrs6en.fsf@gnu.org> <837ecrrqdm.fsf@gnu.org> <83sgvfq6yv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="146102"; mail-complaints-to="usenet@blaine.gmane.org" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Elias =?utf-8?Q?M=C3=A5rtenson?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 24 18:16:49 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h86jp-000bs5-8X for ged-emacs-devel@m.gmane.org; Sun, 24 Mar 2019 18:16:49 +0100 Original-Received: from localhost ([127.0.0.1]:58630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h86jn-00078V-Ip for ged-emacs-devel@m.gmane.org; Sun, 24 Mar 2019 13:16:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h86jb-0006zu-7y for emacs-devel@gnu.org; Sun, 24 Mar 2019 13:16:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h86e2-0004hy-Ae; Sun, 24 Mar 2019 13:10:50 -0400 Original-Received: from [176.228.60.248] (port=3683 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h86e1-0000s5-GG; Sun, 24 Mar 2019 13:10:50 -0400 In-reply-to: (message from Elias =?utf-8?Q?M=C3=A5rtenson?= on Sun, 24 Mar 2019 22:51:16 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234686 Archived-At: > From: Elias MÃ¥rtenson > Date: Sun, 24 Mar 2019 22:51:16 +0800 > Cc: Stefan Monnier , emacs-devel > > In the one native module that I have written, integration of GSSAPI, I end up passing large byte buffers back > and forth between Elisp and C. There really is no efficient way to do this, so I ended up having to use vectors > and use extract_integer in a loop. Can you tell why the byte buffer needs to be exposed to Lisp in this case? IOW, what would a Lisp program using this module want to do with these byte buffers?