mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-05 23:53:27 +00:00
IOStreams: Make constructors for CBitStreamReader and CZipInputStream explicit
Same behavior minus the error prone implicit constructions.
This commit is contained in:
parent
7055b6983f
commit
ff6c1fdd3d
@ -43,7 +43,7 @@ class CBitStreamWriter : public athena::io::MemoryWriter {
|
|||||||
public:
|
public:
|
||||||
static constexpr u32 GetBitCount(u32 maxVal) { return CBitStreamReader::GetBitCount(maxVal); }
|
static constexpr u32 GetBitCount(u32 maxVal) { return CBitStreamReader::GetBitCount(maxVal); }
|
||||||
|
|
||||||
CBitStreamWriter(atUint8* data = nullptr, atUint64 length = 0x10) : MemoryWriter(data, length) {}
|
explicit CBitStreamWriter(atUint8* data = nullptr, atUint64 length = 0x10) : MemoryWriter(data, length) {}
|
||||||
|
|
||||||
void WriteEncoded(u32 val, u32 bitCount);
|
void WriteEncoded(u32 val, u32 bitCount);
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ class CZipInputStream : public CInputStream {
|
|||||||
z_stream x30_zstrm = {};
|
z_stream x30_zstrm = {};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CZipInputStream(std::unique_ptr<CInputStream>&& strm);
|
explicit CZipInputStream(std::unique_ptr<CInputStream>&& strm);
|
||||||
~CZipInputStream() override;
|
~CZipInputStream() override;
|
||||||
atUint64 readUBytesToBuf(void* buf, atUint64 len) override;
|
atUint64 readUBytesToBuf(void* buf, atUint64 len) override;
|
||||||
void seek(atInt64, athena::SeekOrigin) override {}
|
void seek(atInt64, athena::SeekOrigin) override {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user