mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-08 14:32:54 +00:00
Use standard byte buffers in schematic saves
This commit is contained in:
parent
025d8184d8
commit
1ab9750fd6
|
|
@ -37,7 +37,7 @@ void ConsoleSchematicFile::save(DataOutputStream *dos)
|
|||
dos->writeInt(m_ySize);
|
||||
dos->writeInt(m_zSize);
|
||||
|
||||
byteArray ba(new BYTE[ m_data.length ], m_data.length);
|
||||
byteArray ba(new std::uint8_t[ m_data.length ], m_data.length);
|
||||
Compression::getCompression()->CompressLZXRLE( ba.data, &ba.length,
|
||||
m_data.data, m_data.length);
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public:
|
|||
|
||||
virtual bool ready()=0;
|
||||
|
||||
//virtual void getGrfData(PBYTE &pData, DWORD &pSize)=0;
|
||||
//virtual void getGrfData(std::uint8_t *&pData, unsigned int &pSize)=0;
|
||||
};
|
||||
|
||||
class JustGrSource : public GrSource
|
||||
|
|
|
|||
Loading…
Reference in a new issue