打印

FatFS的disk_write()传递参数const型是为什么?

[复制链接]
1490|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
aoshi0603|  楼主 | 2011-8-16 11:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
const BYTE* Buffer为什么要定义成const 型的啊?
 
FRESULT f_write (
  FIL* FileObject,     /* Pointer to the file object structure */
  const BYTE* Buffer,  /* Pointer to the data to be written */
  UINT ByteToWrite,    /* Number of bytes to write */
  UINT* ByteWritten    /* Pointer to the variable to return number of bytes written */
);

相关帖子

沙发
mohanwei| | 2011-8-16 11:47 | 只看该作者
防止你乱改外面的源数据

使用特权

评论回复
评分
参与人数 1威望 +1 收起 理由
aoshi0603 + 1
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

6

主题

113

帖子

3

粉丝