metaforce/Runtime/Streams/CMemoryInStream.hpp

18 lines
487 B
C++
Raw Permalink Normal View History

#pragma once
#include "Runtime/Streams/CInputStream.hpp"
namespace metaforce {
class CMemoryInStream final : public CInputStream {
public:
enum class EOwnerShip {
Owned,
2022-05-14 06:47:29 +00:00
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