MKI_FileWriteData (File I/O)

www.CAD6.com

C++ Syntax

bool

MKI_FileWriteData(

 const void* const f_pData,

 const size_t f_unSize );

 

Writes a given number of bytes to the current write cache.

 

Parameters

Data

[const void* const] Address of a buffer containing the data to be written to the file.

Size

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

 

Return Value

Returns true if the data has been written successfully, else false (indicating disk full). Additionally, the return value of MKI_FileWriteError will be set to true if an error occurred.

 

Comment

This procedure relies on a high-performance write cache previously established by either MKI_FileWriteInitMull, MKI_FileWriteInitDisk or MKI_FileWriteInitMemory. As a result, it will fail if this cache is currently not activated!

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH