prime/include/Kyoto/Streams/CMemoryInStream.hpp

20 lines
449 B
C++
Raw Normal View History

#ifndef _CMEMORYINSTREAM_HPP
#define _CMEMORYINSTREAM_HPP
2022-07-20 06:19:07 +00:00
#include "Kyoto/Streams/CInputStream.hpp"
class CMemoryInStream : public CInputStream {
public:
enum EOwnerShip {
2022-07-20 06:19:07 +00:00
kOS_Owned,
2022-07-20 06:20:28 +00:00
kOS_NotOwned,
};
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;
};
#endif