2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXSTREAMCHUNK_H
|
|
|
|
#define MXSTREAMCHUNK_H
|
|
|
|
|
|
|
|
#include "mxdschunk.h"
|
|
|
|
|
2023-12-17 12:24:39 -05:00
|
|
|
class MxDSBuffer;
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dc2a8
|
2023-11-13 06:25:27 -05:00
|
|
|
// SIZE 0x20
|
2023-11-04 09:47:35 -04:00
|
|
|
class MxStreamChunk : public MxDSChunk {
|
2023-11-13 06:25:27 -05:00
|
|
|
public:
|
2023-12-17 12:24:39 -05:00
|
|
|
inline MxStreamChunk() : m_buffer(NULL) {}
|
|
|
|
virtual ~MxStreamChunk() override;
|
2023-11-13 06:25:27 -05:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100b1fe0
|
2023-11-04 09:47:35 -04:00
|
|
|
inline virtual const char* ClassName() const override // vtable+0xc
|
|
|
|
{
|
2023-12-06 07:10:45 -05:00
|
|
|
// GLOBAL: LEGO1 0x10101e5c
|
2023-11-04 09:47:35 -04:00
|
|
|
return "MxStreamChunk";
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100b1ff0
|
2023-12-13 05:48:14 -05:00
|
|
|
inline virtual MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-11-04 09:47:35 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, MxStreamChunk::ClassName()) || MxDSChunk::IsA(p_name);
|
2023-11-04 09:47:35 -04:00
|
|
|
}
|
2023-11-13 06:25:27 -05:00
|
|
|
|
2023-12-17 12:24:39 -05:00
|
|
|
inline MxDSBuffer* GetBuffer() { return m_buffer; }
|
|
|
|
|
|
|
|
MxResult ReadChunk(MxDSBuffer* p_buffer, MxU8* p_chunkData);
|
|
|
|
MxU32 ReadChunkHeader(MxU8* p_chunkData);
|
|
|
|
void SetBuffer(MxDSBuffer* p_buffer);
|
|
|
|
|
2023-11-13 06:25:27 -05:00
|
|
|
private:
|
2023-12-17 12:24:39 -05:00
|
|
|
MxDSBuffer* m_buffer; // 0x1c
|
2023-11-04 09:47:35 -04:00
|
|
|
};
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-17 12:24:39 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100b20a0
|
|
|
|
// MxStreamChunk::`scalar deleting destructor'
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // MXSTREAMCHUNK_H
|