[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: data type ByteBuffer
From: |
Andreas Rottmann |
Subject: |
Re: data type ByteBuffer |
Date: |
Thu, 06 May 2004 11:53:16 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
"Steven Wu" <address@hidden> writes:
> I wonder if there is a built-in simple data type like ByteBuffer in
> Java, or Message_Block in ACE. It seems to me, when dealing with
> network programing, such a data type can be very efficient. The
> Message_Block in ACE emulates SysV message block used in device driver
> with reference counting, and the concept of adding continue blocks. It
> shouldn't be very hard to implement the similar thing in guile.
>
I've lately added GString support to the Guile GLib bindings, which
can be used like a ByteBuffer, but isn't refcounted. I agree that such
a data type would indeed be useful.
Andy
--
Andreas Rottmann | address@hidden | address@hidden | address@hidden
http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
Beware of bugs in the above code; I have only proved it correct,
not tried it. -- Donald E. Knuth