DAGetMappedFileInfo
Document management, Direct access functionality, Diagnostics, Performance
Description
Returns a JSON snapshot of the read-only mapped source owned by a Direct Access document handle
Syntax
Delphi
Function TPDFlib.DAGetMappedFileInfo(FileHandle: Integer;
Out Info: WideString): Integer;Parameters
| FileHandle | A handle returned by DAOpenMappedFile |
|---|---|
| Info | Receives memoryMapped, fileSize, windowSize, mappedOffset, mappedBytes, readCalls, bytesRead and remapCount |
Return values
| 0 | The handle was invalid or was not opened by DAOpenMappedFile |
|---|---|
| 1 | The snapshot was returned |
Remarks
The fields have the same meaning as GetMappedFileInfo and are sampled while the source read lock is held. After
DACloseFile, the handle and its mapped-file statistics are no longer valid