metaforce/Runtime/Streams/CMemoryInStream.hpp

18 lines
487 B
C++

#pragma once
#include "Runtime/Streams/CInputStream.hpp"
namespace metaforce {
class CMemoryInStream final : public CInputStream {
public:
enum class EOwnerShip {
Owned,
NotOwned,
};
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; }
};
} // namespace metaforce