| 100 | } |
| 101 | |
| 102 | bool UnixFile::Write(const void* buffer, uint32 bytesToWrite, uint32* bytesWritten) |
| 103 | { |
| 104 | const ssize_t tmp = write(_handle, buffer, bytesToWrite); |
| 105 | if (tmp != -1) |
| 106 | { |
| 107 | if (bytesWritten) |
| 108 | *bytesWritten = tmp; |
| 109 | return false; |
| 110 | } |
| 111 | if (bytesWritten) |
| 112 | *bytesWritten = 0; |
| 113 | LOG_UNIX_LAST_ERROR; |
| 114 | return true; |
| 115 | } |
| 116 | |
| 117 | void UnixFile::Close() |
| 118 | { |
no test coverage detected