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-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
|
2024-10-20 17:00:44 -04:00
|
|
|
// VTABLE: BETA10 0x101c1d20
|
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:
|
2024-10-20 17:00:44 -04:00
|
|
|
// FUNCTION: BETA10 0x10134420
|
2024-07-04 19:06:32 -04:00
|
|
|
MxStreamChunk() : m_buffer(NULL) {}
|
2024-10-20 17:00:44 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
~MxStreamChunk() override;
|
2023-11-13 06:25:27 -05:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100b1fe0
|
2024-07-04 19:06:32 -04:00
|
|
|
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
|
2024-07-04 19:06:32 -04:00
|
|
|
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
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
MxDSBuffer* GetBuffer() { return m_buffer; }
|
2023-12-17 12:24:39 -05:00
|
|
|
|
|
|
|
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
|