mirror of
https://github.com/libAthena/athena.git
synced 2025-12-09 21:47:52 +00:00
* Change default constructor for BinaryWriter to accept null buffers
This commit is contained in:
@@ -41,7 +41,10 @@ BinaryWriter::BinaryWriter(atUint8* data, atUint64 length)
|
||||
m_bitPosition(0),
|
||||
m_endian(Endian::LittleEndian),
|
||||
m_progressCallback(nullptr)
|
||||
{}
|
||||
{
|
||||
if (!m_data)
|
||||
m_data = new atUint8[m_length];
|
||||
}
|
||||
|
||||
BinaryWriter::BinaryWriter(const std::string& filename, std::function<void(int)> progressFun)
|
||||
: m_length(0),
|
||||
|
||||
Reference in New Issue
Block a user