2015-01-05 17:01:28 +00:00
|
|
|
namespace dk {
|
|
|
|
///-------------------------------------------------------------------------
|
|
|
|
///-------------------------------------------------------------------------
|
2015-01-08 11:20:17 +00:00
|
|
|
template <uint32_t D>
|
2015-01-05 17:01:28 +00:00
|
|
|
MapStreamBase<D>::MapStreamBase (const coords& parMapSize) :
|
|
|
|
m_mapSize(parMapSize)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
///-------------------------------------------------------------------------
|
|
|
|
///-------------------------------------------------------------------------
|
2015-01-08 11:20:17 +00:00
|
|
|
template <uint32_t D>
|
2015-01-05 17:01:28 +00:00
|
|
|
void MapStreamBase<D>::read (char* parOut, std::size_t parOutSize, const coords& parFrom, const coords& parTo) {
|
|
|
|
DK_ASSERT(parOut);
|
|
|
|
DK_ASSERT(parOutSize > 0);
|
|
|
|
DK_ASSERT(this->isReadable());
|
|
|
|
DK_ASSERT(parFrom < m_mapSize);
|
|
|
|
DK_ASSERT(parTo <= m_mapSize);
|
|
|
|
this->dataBlockRequested(parOut, parOutSize, parFrom, parTo);
|
|
|
|
}
|
|
|
|
} //namespace dk
|