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

FileHandleA handle returned by DAOpenMappedFile
InfoReceives memoryMapped, fileSize, windowSize, mappedOffset, mappedBytes, readCalls, bytesRead and remapCount

Return values

0The handle was invalid or was not opened by DAOpenMappedFile
1The 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