2022-10-11 13:41:20 +00:00
|
|
|
#ifndef _CMEMORYSTREAMOUT
|
|
|
|
#define _CMEMORYSTREAMOUT
|
|
|
|
|
|
|
|
#include "Kyoto/Streams/COutputStream.hpp"
|
|
|
|
|
|
|
|
class CMemoryStreamOut : public COutputStream {
|
|
|
|
public:
|
|
|
|
enum EOwnerShip {
|
|
|
|
kOS_Owned,
|
|
|
|
kOS_NotOwned,
|
|
|
|
};
|
|
|
|
|
2022-10-11 16:28:27 +00:00
|
|
|
CMemoryStreamOut(void* buffer, size_t len, EOwnerShip ownerShip = kOS_NotOwned, int blockLen = 4096);
|
2022-10-11 13:41:20 +00:00
|
|
|
virtual ~CMemoryStreamOut();
|
2022-10-11 17:09:26 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
u8* x7c_ptr;
|
|
|
|
u32 x80_len;
|
|
|
|
u32 x84_position;
|
|
|
|
bool x88_owned;
|
2022-10-11 13:41:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _CMEMORYSTREAMOUT
|