prime/include/Kyoto/Streams/CMemoryInStream.hpp

20 lines
449 B
C++
Raw Normal View History

#ifndef _CMEMORYINSTREAM_HPP
#define _CMEMORYINSTREAM_HPP
#include "Kyoto/Streams/CInputStream.hpp"
class CMemoryInStream : public CInputStream {
public:
enum EOwnerShip {
kOS_NotOwned,
kOS_Owned,
};
CMemoryInStream(const void* ptr, unsigned long len);
CMemoryInStream(const void* ptr, unsigned long len, EOwnerShip ownership);
virtual ~CMemoryInStream() override {}
virtual u32 Read(void* dest, u32 len) override;
};
#endif