How to create a binary stream (not a file) in Common Lisp?

I have a function that outputs some binary data to a stream. But the stream is abstract, which means that the stream can be a file stream or some other stream. But the stream must be a binary stream that supports the write-byte function. I searched, but could not find an answer.

What I want to do, I have a function that converts some data to gif. But I do not want to output data to a file, I want to output it to memory.

Thank.

+5
source share
2 answers

The flexi-streams library provides, among other things, binary streams in memory.

+3
source

" " - . (). CL . this.

+1

All Articles