话说MTK读文件

本文探讨了MTK文件系统中读取特定数据块的方法。作者未能直接找到相关函数,考虑使用FS_Open与FS_Read组合来实现目的。同时,寻求获取文件指针的有效途径。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

看了MTK文件系统的文档好几遍,却未能找到读文件中指定的数据块的函数,有点寒!

唯一有点感觉的还是FS_Open()

这是它的原型FS_HANDLE FS_Open(const WCHAR * FileName, UINT Flags);

Return Value

If the function succeeds, the return value is a file handle for the opened file and the file pointer of the file is set to 0. If
the return value is less than 0, the function has failed and the return value is the error code.
For data and directory files, the same rules for file name syntax apply as under MS-DOS. For logical drive and
physical disk file names, the same rules as under Windows NT apply.

看第一句话,我考,file handle 与file pointer是一回事?

 看一下了,

typedef void * HANDLE;
typedef int FS_HANDLE;

我考,妈的,MTK的资料能否写好点!

如何读指定数据?

没办法,开个mallloc,用FS_Read()把所有的内容都读出来

然后对malloc里的数据进行分析,

 

毕人觉得还有一种方法更方便,(仅是想法)

这里不说了,自己想去!

 

哪位知道获取文件指针的方法?

小弟在这里跪求了

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值