Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从某个偏移量开始在稀疏文件中找到非零数据块的长度?我是否必须读取一些文件或操作系统可以从一些可以缓存的元数据中读取该信息?我正在使用 Windows 操作系统和 Visual Studio C++。
您可以使用DeviceIoControlFSCTL_QUERY_ALLOCATED_RANGES命令。
DeviceIoControl