mirror of https://github.com/AxioDL/metaforce.git
35 lines
858 B
C++
35 lines
858 B
C++
|
#ifndef __RETRO_IOSTREAMS_HPP__
|
||
|
#define __RETRO_IOSTREAMS_HPP__
|
||
|
|
||
|
#include "RetroTypes.hpp"
|
||
|
#include <Athena/IStreamReader.hpp>
|
||
|
#include <Athena/IStreamWriter.hpp>
|
||
|
#include <Athena/MemoryReader.hpp>
|
||
|
#include <zlib.h>
|
||
|
|
||
|
namespace Retro
|
||
|
{
|
||
|
|
||
|
using CInputStream = Athena::io::IStreamReader;
|
||
|
using COutputStream = Athena::io::IStreamWriter;
|
||
|
|
||
|
using CMemoryInStream = Athena::io::MemoryReader;
|
||
|
|
||
|
class CZipInputStream : public CInputStream
|
||
|
{
|
||
|
std::unique_ptr<u8[]> x24_compBuf;
|
||
|
std::unique_ptr<CInputStream> x28_strm;
|
||
|
z_stream x30_zstrm = {};
|
||
|
public:
|
||
|
CZipInputStream(std::unique_ptr<CInputStream>&& strm);
|
||
|
~CZipInputStream();
|
||
|
atUint64 readUBytesToBuf(void *buf, atUint64 len);
|
||
|
void seek(atInt64, Athena::SeekOrigin) {}
|
||
|
atUint64 position() const {return 0;}
|
||
|
atUint64 length() const {return 0;}
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif // __RETRO_IOSTREAMS_HPP__
|