mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
more MxDSBuffer functions (#255)
* FUN_100c6f80 * AllocateBuffer * Update mxdsbuffer.h * Update mxdsbuffer.cpp * Update mxdsbuffer.cpp * Return reference * Fix delete call * Fix GetWriteOffset * Remove cast --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
@@ -18,9 +18,11 @@ public:
|
||||
|
||||
~MxStreamerSubClass1() { delete[] m_buffer; }
|
||||
|
||||
undefined4 GetSize() { return m_size; }
|
||||
undefined4 GetSize() const { return m_size; }
|
||||
|
||||
void SetBuffer(undefined* p_buf) { m_buffer = p_buf; }
|
||||
inline undefined* GetBuffer() const { return m_buffer; }
|
||||
inline undefined4 GetUnk08() const { return m_unk08; }
|
||||
|
||||
private:
|
||||
undefined* m_buffer;
|
||||
@@ -93,6 +95,9 @@ public:
|
||||
MxResult AddStreamControllerToOpenList(MxStreamController* p_stream);
|
||||
MxResult FUN_100b99b0(MxDSAction* p_action);
|
||||
|
||||
inline const MxStreamerSubClass2& GetSubclass1() { return m_subclass1; }
|
||||
inline const MxStreamerSubClass3& GetSubclass2() { return m_subclass2; }
|
||||
|
||||
private:
|
||||
list<MxStreamController*> m_openStreams; // 0x8
|
||||
MxStreamerSubClass2 m_subclass1; // 0x14
|
||||
|
Reference in New Issue
Block a user