From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Clinton Ebadi Newsgroups: gmane.lisp.guile.devel Subject: Re: data type ByteBuffer Date: Sat, 08 May 2004 11:44:42 -0400 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <1084031082.3050.19.camel@localhost> References: <92C45B78-9F30-11D8-BD05-000A958866C4@qwest.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1077654537==" X-Trace: sea.gmane.org 1084031367 10365 80.91.224.253 (8 May 2004 15:49:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 May 2004 15:49:27 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat May 08 17:49:20 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BMU4l-0007ee-00 for ; Sat, 08 May 2004 17:49:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.33) id 1BMU1A-0000Xc-V6 for guile-devel@m.gmane.org; Sat, 08 May 2004 11:45:37 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.33) id 1BMU0y-0000X9-R0 for guile-devel@gnu.org; Sat, 08 May 2004 11:45:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.33) id 1BMU0R-0000Gb-8o for guile-devel@gnu.org; Sat, 08 May 2004 11:45:22 -0400 Original-Received: from [216.148.227.85] (helo=rwcrmhc12.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.33) id 1BMU0Q-0000GD-Uj for guile-devel@gnu.org; Sat, 08 May 2004 11:44:51 -0400 Original-Received: from localhost (pcp04598332pcs.elictc01.md.comcast.net[68.55.70.125]) by comcast.net (rwcrmhc12) with ESMTP id <2004050815444901400ju0dve>; Sat, 8 May 2004 15:44:49 +0000 Original-Received: from clinton by localhost with local (Exim 3.36 #1 (Debian)) id 1BMU0J-00052y-00; Sat, 08 May 2004 11:44:43 -0400 Original-To: Steven Wu , guile-devel@gnu.org In-Reply-To: <92C45B78-9F30-11D8-BD05-000A958866C4@qwest.net> X-Mailer: Ximian Evolution 1.4.6 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Mime-version: 1.0 Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3685 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3685 --===============1077654537== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-6/qW/no7P4b52puq7/Ip" --=-6/qW/no7P4b52puq7/Ip Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2004-05-06 at 03:39, Steven Wu wrote: > I wonder if there is a built-in simple data type like ByteBuffer in=20 > Java, or Message_Block in ACE. It seems to me, when dealing with=20 > network programing, such a data type can be very efficient. The=20 > Message_Block in ACE emulates SysV message block used in device driver=20 > with reference counting, and the concept of adding continue blocks. It=20 > shouldn't be very hard to implement the similar thing in guile. >=20 > steve Would a uniform byte vector (or array if you need more than one dimension) work? (make-uniform-vector size #\nul &fill) You can use the helper procedures uniform-vector-read! and uniform-vector-write to read and write data from/to a port or a file descriptor. Uniform vectors and arrays are documented in the Guile manual, (guile)->Compound Data Types->Arrays->Uniform Arrays. --=20 http://unknownlamer.org AIM:unknownlamer IRC:unknown_lamer@freenode#hprog I use Free Software because I value freedom over features. --=-6/qW/no7P4b52puq7/Ip Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAnQBpdgGh8PQDV0sRAv7gAKDInVuPUvq/1yTnC3soB+oHk/VbBACg4mcP QH1xCpARsJ20+Z4tytrsVwU= =9lKA -----END PGP SIGNATURE----- --=-6/qW/no7P4b52puq7/Ip-- --===============1077654537== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel --===============1077654537==--