mirror of
https://github.com/libAthena/athena.git
synced 2025-12-09 21:47:52 +00:00
* Add formattedMessage to Exception
* Add missing IStreamWriter::fill implementations in FileWriter
This commit is contained in:
@@ -306,5 +306,18 @@ void FileWriter::writeUnicode(const std::string& str)
|
||||
writeInt16(chr);
|
||||
}
|
||||
}
|
||||
|
||||
void FileWriter::fill(atInt8 byte, atUint64 len)
|
||||
{
|
||||
if (!isOpen())
|
||||
THROW_INVALID_OPERATION_EXCEPTION("File not open for writing");
|
||||
fwrite(&byte, 1, len, m_fileHandle);
|
||||
}
|
||||
|
||||
void FileWriter::fill(atUint8 byte, atUint64 len)
|
||||
{
|
||||
fill((atInt8)byte, len);
|
||||
}
|
||||
|
||||
}
|
||||
} // Athena
|
||||
|
||||
Reference in New Issue
Block a user