如何在Common Lisp中创建二进制流(不是文件)? [英] How to create a binary stream (not a file) in Common Lisp?

查看:101
本文介绍了如何在Common Lisp中创建二进制流(不是文件)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个将一些二进制数据输出到流的函数.但是流是抽象的,这意味着该流可以是文件流,也可以是其他一些流.但是该流必须是支持写字节功能的二进制流.我搜索了但没有找到答案.

I have a function which output some binary data to a stream. But the stream is abstract, which means the stream can be a file stream, or some other streams. But the stream must be a binary stream which support write-byte function. I searched but not found the answer.

我想做的是,我有一个函数,它将一些数据转换为gif.但是我不想将数据输出到文件中,而是要将其输出到内存中的某些内容中.

What I want to do is, I have a function which will convert some data to a gif. But I donot want to output the data to a file, I want to output it to something in memory.

谢谢.

推荐答案

flexi-streams 库提供内存二进制流等.

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

这篇关于如何在Common Lisp中创建二进制流(不是文件)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆