Write Writes specified number of bytes PARAM: buffer - buffer to read to count - number of bytes to read RETURN: -1 if error ************************************************/
| 362 | -1 if error |
| 363 | ************************************************/ |
| 364 | int CUT_FileDataSource::Write(LPCSTR buffer, size_t count) { |
| 365 | |
| 366 | // Wrong parameter |
| 367 | if(buffer == NULL) return -1; |
| 368 | |
| 369 | // Write data to the file |
| 370 | return m_file.Write(buffer, (DWORD)count); |
| 371 | } |
| 372 | /**************************************** |
| 373 | Seek |
| 374 | Moves the file pointer to a specified |