isle/LEGO1/mxdssource.cpp
Misha 724c953947
Implement MxDSBuffer constructor, match MxDSSource::FUN_100bffd0 (#235)
* Implement MxDSBuffer constructor, match FUN_100bffd0

* Match to 100%, minor style fixes

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-22 21:58:05 +02:00

20 lines
391 B
C++

#include "mxdssource.h"
#include "mxdsbuffer.h"
// OFFSET: LEGO1 0x100bffd0
void MxDSSource::ReadToBuffer(MxDSBuffer* p_buffer)
{
Read((unsigned char*)p_buffer->GetBuffer(), p_buffer->GetWriteOffset());
}
// OFFSET: LEGO1 0x100bfff0
MxLong MxDSSource::GetLengthInDWords()
{
return m_lengthInDWords;
}
// OFFSET: LEGO1 0x100c0000
MxU32 *MxDSSource::GetBuffer()
{
return m_pBuffer;
}