| 50 | } |
| 51 | |
| 52 | std::string CSimpleFile::GetErrorMessage() const { |
| 53 | if (m_fFile) |
| 54 | return ""; |
| 55 | |
| 56 | char err[512] = { }; |
| 57 | #ifdef _MSC_VER |
| 58 | if (0 == ::strerror_s(err, errno)) |
| 59 | #else |
| 60 | if (0 == ::strerror_r(errno, err, std::size(err))) |
| 61 | #endif |
| 62 | return err; |
| 63 | |
| 64 | return "Unknown error"; |
| 65 | } |
| 66 | |
| 67 | void CSimpleFile::WriteInt8(int8_t Value) |
| 68 | { |
no test coverage detected