DAGetMappedFileInfo
文档管理、直接访问功能、诊断、性能
描述
返回 Direct Access 文档句柄所拥有的只读映射源的 JSON 快照
语法
Delphi
Function TPDFlib.DAGetMappedFileInfo(FileHandle: Integer;
Out Info: WideString): Integer;参数
| FileHandle | 由 DAOpenMappedFile 返回的句柄 |
|---|---|
| Info | 接收 memoryMapped、fileSize、windowSize、mappedOffset、mappedBytes、readCalls、bytesRead 和 remapCount |
返回值
| 0 | 句柄无效,或不是由 DAOpenMappedFile 打开的 |
|---|---|
| 1 | 快照已返回 |
说明
这些字段的含义与 GetMappedFileInfo 相同,并在持有源读取锁期间采样调用
DACloseFile 之后,句柄及其映射文件统计信息不再有效