mirror of https://github.com/AxioDL/metaforce.git
Merge pull request #52 from lioncash/init
PAK: Zero initialize m_sz and m_pos of PAKEntryReadStream
This commit is contained in:
commit
d075ae209b
|
@ -18,12 +18,12 @@ namespace DataSpec {
|
||||||
/** PAK entry stream reader */
|
/** PAK entry stream reader */
|
||||||
class PAKEntryReadStream : public athena::io::IStreamReader {
|
class PAKEntryReadStream : public athena::io::IStreamReader {
|
||||||
std::unique_ptr<atUint8[]> m_buf;
|
std::unique_ptr<atUint8[]> m_buf;
|
||||||
atUint64 m_sz;
|
atUint64 m_sz = 0;
|
||||||
atUint64 m_pos;
|
atUint64 m_pos = 0;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PAKEntryReadStream() {}
|
PAKEntryReadStream() = default;
|
||||||
operator bool() const { return m_buf.operator bool(); }
|
explicit operator bool() const { return m_buf.operator bool(); }
|
||||||
PAKEntryReadStream(const PAKEntryReadStream& other) = delete;
|
PAKEntryReadStream(const PAKEntryReadStream& other) = delete;
|
||||||
PAKEntryReadStream(PAKEntryReadStream&& other) = default;
|
PAKEntryReadStream(PAKEntryReadStream&& other) = default;
|
||||||
PAKEntryReadStream& operator=(const PAKEntryReadStream& other) = delete;
|
PAKEntryReadStream& operator=(const PAKEntryReadStream& other) = delete;
|
||||||
|
|
Loading…
Reference in New Issue