2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXSTREAMCHUNK_H
|
|
|
|
#define MXSTREAMCHUNK_H
|
|
|
|
|
|
|
|
#include "mxdschunk.h"
|
2023-12-26 16:27:54 -05:00
|
|
|
#include "mxdsobject.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-17 12:24:39 -05:00
|
|
|
class MxDSBuffer;
|
2023-12-26 16:27:54 -05:00
|
|
|
class MxStreamListMxDSSubscriber;
|
2023-12-17 12:24:39 -05:00
|
|
|
|
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
|
2024-01-29 16:17:17 -05:00
|
|
|
inline virtual const char* ClassName() const override // vtable+0x0c
|
2023-11-04 09:47:35 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: 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);
|
2023-12-26 16:27:54 -05:00
|
|
|
MxResult SendChunk(MxStreamListMxDSSubscriber& p_subscriberList, MxBool p_append, MxS16 p_obj24val);
|
2023-12-17 12:24:39 -05:00
|
|
|
void SetBuffer(MxDSBuffer* p_buffer);
|
|
|
|
|
2023-12-26 16:27:54 -05:00
|
|
|
static MxU16* IntoFlags(MxU8* p_buffer);
|
2024-01-02 13:32:01 -05:00
|
|
|
static MxU32* IntoObjectId(MxU8* p_buffer);
|
|
|
|
static MxLong* IntoTime(MxU8* p_buffer);
|
|
|
|
static MxU32* IntoLength(MxU8* p_buffer);
|
2023-12-26 16:27:54 -05:00
|
|
|
|
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
|