GetMappedFileInfo
Document management, Diagnostics, Performance
Description
Returns a JSON snapshot of the read-only mapped-file source owned by the selected document
Syntax
Delphi
Function TPDFlib.GetMappedFileInfo(Out Info: WideString): Integer;Parameters
| Info | Receives memoryMapped, fileSize, windowSize, mappedOffset, mappedBytes, readCalls, bytesRead and remapCount |
|---|
Return values
| 0 | The selected document was not opened by LoadFromMappedFile |
|---|---|
| 1 | The snapshot was returned |
Remarks
memoryMapped is false when the portable file-stream fallback is active
mappedOffset is the zero-based allocation-aligned start of the retained view, or -1 when no view is active; mappedBytes may be smaller than windowSize at the physical end of the file
readCalls counts successful in-range absolute or positional read requests, bytesRead counts bytes copied to callers and remapCount includes the initial view