chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] [Q] Can I make port on byte array?


From: Thomas Chust
Subject: Re: [Chicken-users] [Q] Can I make port on byte array?
Date: Wed, 7 Oct 2015 14:20:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 2015-10-07 03:04, Sungjin Chun wrote:
> [...]
> In Common Lisp, I can make a stream on byte array and can write
> values on them, in Scheme, I think the equivalent stuff is port and
> I'd like to write values on byte array using port.
> [...]

Hello,

it sounds like you are looking for something like
call-with-output-string. The resulting string can be converted with
string->blob, blob->u8vector, ...

Ciao,
Thomas


-- 
When C++ is your hammer, every problem looks like your thumb.



reply via email to

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