MKI_FileReadData (File I/O)

www.CAD6.com

C++ Syntax

bool

MKI_FileReadData(

 void* f_pData,

 const size_t f_unSize );

 

Reads a given number of bytes from the current read cache.

 

Parameters

Data

[void*] Address of a buffer to receive the data read from the file.

Size

[const size_t] Number of bytes to be read from the file.

 

Return Value

Returns true if the data has been read successfully, else false (indicating end-of-file). Additionally, the return value of MKI_FileReadError will be set to true if an error occurred.

 

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 2026.0 - Copyright 2026 Malz++Kassner® GmbH