prime/include/Kyoto/Streams/CMemoryStreamOut.hpp
Henrique Gemignani Passos Lima cc98c4bdaf Match SGameFileSlot::InitializeFromGameState (and a few others)
Former-commit-id: 9bd9f9c32ff9340b4d8aadebae736efbfa0d88b8
2022-10-11 20:10:00 +03:00

24 lines
457 B
C++

#ifndef _CMEMORYSTREAMOUT
#define _CMEMORYSTREAMOUT
#include "Kyoto/Streams/COutputStream.hpp"
class CMemoryStreamOut : public COutputStream {
public:
enum EOwnerShip {
kOS_Owned,
kOS_NotOwned,
};
CMemoryStreamOut(void* buffer, size_t len, EOwnerShip ownerShip = kOS_NotOwned, int blockLen = 4096);
virtual ~CMemoryStreamOut();
private:
u8* x7c_ptr;
u32 x80_len;
u32 x84_position;
bool x88_owned;
};
#endif // _CMEMORYSTREAMOUT