CFile到底有没有Buffer?
时间:2011-12-05
来源:互联网
关于CFile,MSDN上第一句就是
It directly provides unbuffered, binary disk input/output services, and it indirectly supports text files and memory files through its derived classes.
然后关于CFile::Flush这个函数的描述是:
Forces any data remaining in the file buffer to be written to the file.
前面说它没有buffer,后面那个Flush又说是强制把buffer里面的东西写到文件。
这是不是矛盾?CFile到底 有没有Buffer?
还有,有时间的大侠顺便帮忙看看这两个贴子吧,谢谢:
http://topic.csdn.net/u/20111205/15/e5841246-eb2b-43c7-8f99-b2db1c04f195.html
http://topic.csdn.net/u/20111205/16/0439070c-8329-45ca-8db5-8d4725049601.html
It directly provides unbuffered, binary disk input/output services, and it indirectly supports text files and memory files through its derived classes.
然后关于CFile::Flush这个函数的描述是:
Forces any data remaining in the file buffer to be written to the file.
前面说它没有buffer,后面那个Flush又说是强制把buffer里面的东西写到文件。
这是不是矛盾?CFile到底 有没有Buffer?
还有,有时间的大侠顺便帮忙看看这两个贴子吧,谢谢:
http://topic.csdn.net/u/20111205/15/e5841246-eb2b-43c7-8f99-b2db1c04f195.html
http://topic.csdn.net/u/20111205/16/0439070c-8329-45ca-8db5-8d4725049601.html
作者: ereere235 发布时间: 2011-12-05
直接支持无buffer的二进制服务,间接支持文本文件和内存文件,所以有无BUFFER都支持。
作者: Kaile 发布时间: 2011-12-05
引用 1 楼 kaile 的回复:
直接支持无buffer的二进制服务,间接支持文本文件和内存文件,所以有无BUFFER都支持。
直接支持无buffer的二进制服务,间接支持文本文件和内存文件,所以有无BUFFER都支持。
没看太懂, 意思是二进制的没有buffer ?
而文本文件有?
作者: ereere235 发布时间: 2011-12-05
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28