什么是“混淆”流缓冲区? [英] What are 'aliased' stream buffers?

查看:109
本文介绍了什么是“混淆”流缓冲区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是别名流缓冲区?我在 answer的评论中遇到了该词我的。

What are 'aliased stream buffers`? I encountered the term in a comment on an answer of mine.

推荐答案

我以前从未听说过该术语,但是在您引用的线程中,
的使用者也给出了一个示例:
的两个流使用相同的streambuf。

I've never heard the term before, but in the thread you cite, the person who used it also gave an example: two streams which use the same streambuf.

当然,只是因为两个流不使用相同的
streambuf,并不意味着写入到它们中的数据最终不会在同一位置出现
;他们没有为
相同的接收器加上别名,如果那是什么意思。过滤
个streambuf,将实际的下沉和采购转发到另一个streambuf,在大多数系统上,可以在系统级别打开
a文件,并连接一个streambuf(或两个) )到
它。

Of course, just because two streams don't use the same streambuf, doesn't mean that data written to them doesn't ultimately end up in the same place; that they don't alias the same sink, if that is what is meant. There are filtering streambuf's, which forward the actual sinking and sourcing to another streambuf, and on most systems, it's possible to open a file at the system level, and connect a streambuf (or two) to it.

-
James Kanze

-- James Kanze

这篇关于什么是“混淆”流缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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