2022-02-18 07:37:54 +00:00
|
|
|
#pragma once
|
2022-02-22 06:59:47 +00:00
|
|
|
#include "Runtime/Streams/CInputStream.hpp"
|
2022-02-18 07:37:54 +00:00
|
|
|
|
|
|
|
namespace metaforce {
|
|
|
|
class CMemoryInStream final : public CInputStream {
|
|
|
|
public:
|
|
|
|
enum class EOwnerShip {
|
|
|
|
NotOwned,
|
|
|
|
Owned,
|
|
|
|
};
|
|
|
|
|
|
|
|
CMemoryInStream(const void* ptr, u32 len) : CInputStream(ptr, len, false) {}
|
|
|
|
CMemoryInStream(const void* ptr, u32 len, EOwnerShip ownership)
|
|
|
|
: CInputStream(ptr, len, ownership == EOwnerShip::Owned) {}
|
|
|
|
u32 Read(void* dest, u32 len) override { return 0; }
|
|
|
|
};
|
2022-02-25 07:45:25 +00:00
|
|
|
} // namespace metaforce
|