VFS_WriteFile(
HANDLE:hVFSData,
LPVFSFUNCDATA:lpFuncData,
HANDLE:hFile,
LPVOID:lpData,
DWORD:dwSize,
BOOL:fFlush,
LPDWORD:lpdwWriteSize
)
→ BOOL
Arguments
hVFSData
[in] The handle to the namespace instance data
lpFuncData
[in] unused
hFile
[in] File handle as returned by your
VFS_CreateFile function
lpData
[in] Pointer to a buffer containing the data to write
dwSize
[in] Size of the data in bytes
fFlush
[in] Set to
TRUE if you should flush any write buffers to disk after completing this write operation
lpdwWriteSize
[out] Pointer to a DWORD to receive the amount of data written successfully
Return value
The function must return
TRUE if data was successfully written to the file, or
FALSE on failure or end-of-file. You should set an appropriate error code on failure that Opus can retrieve via
VFS_GetLastError - the error code should be set to 0 for an end-of-file condition.
Description