MKI_FileReadTotalSize (File I/O)

www.CAD6.com

C++ Syntax

__int64

MKI_FileReadTotalSize( void );

 

This procedure is used to determine the total size of the currently open file.

 

Return Value

Size of the opened file in bytes. If the file is a memory image, the value returned might be slightly above the real size of the image (in fact, it is the value returned by the GlobalSize procedure of Win32/x64).

 

Comment

This procedure relies on a high-performance read cache previously established by either MKI_FileReadInitDisk, MKI_FileReadInitDiskOffset or MKI_FileReadInitMemory. As a result, it will fail if this cache is currently not activated!

 

CAD6interface 2025.1 - Copyright 2025 Malz++Kassner® GmbH