mirror of https://github.com/libAthena/athena.git
Merge pull request #57 from lioncash/init
MemoryWriter: Initialize member variables to deterministic values
This commit is contained in:
commit
781937da88
|
@ -90,11 +90,11 @@ public:
|
||||||
void writeUBytes(const atUint8* data, atUint64 length) override;
|
void writeUBytes(const atUint8* data, atUint64 length) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
MemoryWriter() {}
|
MemoryWriter() = default;
|
||||||
atUint8* m_data;
|
atUint8* m_data = nullptr;
|
||||||
atUint64 m_length;
|
atUint64 m_length = 0;
|
||||||
atUint64 m_position;
|
atUint64 m_position = 0;
|
||||||
bool m_bufferOwned;
|
bool m_bufferOwned = false;
|
||||||
std::string m_filepath; //!< Path to the target file
|
std::string m_filepath; //!< Path to the target file
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue