Changed void* to uint8_t*.
This commit is contained in:
parent
c3801db4e2
commit
c5023ff623
@ -65,7 +65,7 @@ namespace PolyVox
|
|||||||
void compress(Compressor* pCompressor);
|
void compress(Compressor* pCompressor);
|
||||||
void uncompress(Compressor* pCompressor);
|
void uncompress(Compressor* pCompressor);
|
||||||
|
|
||||||
void* m_pCompressedData;
|
uint8_t* m_pCompressedData;
|
||||||
uint32_t m_uCompressedDataLength;
|
uint32_t m_uCompressedDataLength;
|
||||||
VoxelType* m_tUncompressedData;
|
VoxelType* m_tUncompressedData;
|
||||||
uint16_t m_uSideLength;
|
uint16_t m_uSideLength;
|
||||||
|
@ -167,7 +167,7 @@ namespace PolyVox
|
|||||||
uCompressedLength = pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength);
|
uCompressedLength = pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength);
|
||||||
|
|
||||||
// Create new compressed data and copy across
|
// Create new compressed data and copy across
|
||||||
m_pCompressedData = reinterpret_cast<void*>( new uint8_t[uCompressedLength] );
|
m_pCompressedData = new uint8_t[uCompressedLength];
|
||||||
memcpy(m_pCompressedData, pDstData, uCompressedLength);
|
memcpy(m_pCompressedData, pDstData, uCompressedLength);
|
||||||
m_uCompressedDataLength = uCompressedLength;
|
m_uCompressedDataLength = uCompressedLength;
|
||||||
}
|
}
|
||||||
@ -187,7 +187,7 @@ namespace PolyVox
|
|||||||
uCompressedLength = pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength);
|
uCompressedLength = pCompressor->compress(pSrcData, uSrcLength, pDstData, uDstLength);
|
||||||
|
|
||||||
// Create new compressed data and copy across
|
// Create new compressed data and copy across
|
||||||
m_pCompressedData = reinterpret_cast<void*>( new uint8_t[uCompressedLength] );
|
m_pCompressedData = new uint8_t[uCompressedLength];
|
||||||
memcpy(m_pCompressedData, pDstData, uCompressedLength);
|
memcpy(m_pCompressedData, pDstData, uCompressedLength);
|
||||||
m_uCompressedDataLength = uCompressedLength;
|
m_uCompressedDataLength = uCompressedLength;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user