template<typename T>
T D(unsigned int wD) { return D<T>(wD); }
// 获取数据 int
template<> int D(unsigned int wD)
{
return *(int*)(m_pMemHead+wD);
}
// 获取数据 float
template<> float D(unsigned int wD)
{
return *(float*)(m_pMemHead+wD);
}
// 获取数据 const char*
template<> const char* D(unsigned int wD)
{
return (const char*)(m_pMemHead+wD);
}
T D(unsigned int wD) { return D<T>(wD); }
// 获取数据 int
template<> int D(unsigned int wD)
{
return *(int*)(m_pMemHead+wD);
}
// 获取数据 float
template<> float D(unsigned int wD)
{
return *(float*)(m_pMemHead+wD);
}
// 获取数据 const char*
template<> const char* D(unsigned int wD)
{
return (const char*)(m_pMemHead+wD);
}