2022-04-10 00:17:06 +00:00
|
|
|
#ifndef _CMEMORYINSTREAM_HPP
|
|
|
|
#define _CMEMORYINSTREAM_HPP
|
|
|
|
|
|
|
|
#include "CInputStream.hpp"
|
|
|
|
|
|
|
|
class CMemoryInStream : public CInputStream {
|
|
|
|
public:
|
|
|
|
enum EOwnerShip {
|
|
|
|
NotOwned,
|
|
|
|
Owned,
|
|
|
|
};
|
|
|
|
|
|
|
|
CMemoryInStream(const void* ptr, unsigned long len);
|
|
|
|
CMemoryInStream(const void* ptr, unsigned long len, EOwnerShip ownership);
|
2022-07-18 22:42:58 +00:00
|
|
|
virtual ~CMemoryInStream() override {}
|
|
|
|
virtual u32 Read(void* dest, u32 len) override;
|
2022-04-10 00:17:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|