How to make an in memory input/output stream?
- From: "Pisin Bootvong" <joesb.coe9@xxxxxxxxx>
- Date: 19 Oct 2005 03:50:10 -0700
Hi,
I am trying to write some binary data.
Now I want to have an easy way to test the data I wrote to the stream.
Knowing (with-output-to-string) and (with-input-from-string) I am
thinking of something along this style, but with element-type as 'byte.
(let ((io (make-buffer)))
(write-the-binary (buffer-output-stream io))
(test-the-binary (buffer-input-stream io)))
However, in Hypersepc there is no way to create an output stream that
write to memory. Is there any portable way to do this? I know that I
could write to a temp file and read back, but it doesn't seems like the
clean way to do it.
Regards,
.
- Follow-Ups:
- Re: How to make an in memory input/output stream?
- From: Duane Rettig
- Re: How to make an in memory input/output stream?
- From: Lars Brinkhoff
- Re: How to make an in memory input/output stream?
- Prev by Date: Re: Two questions together
- Next by Date: make-array can't take constants?
- Previous by thread: Two questions together
- Next by thread: Re: How to make an in memory input/output stream?
- Index(es):
Relevant Pages
|