diff options
Diffstat (limited to 'include/pso/TPlySmth.h')
-rw-r--r-- | include/pso/TPlySmth.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/include/pso/TPlySmth.h b/include/pso/TPlySmth.h index 99bf763..2530c7b 100644 --- a/include/pso/TPlySmth.h +++ b/include/pso/TPlySmth.h @@ -10,24 +10,13 @@ class TPlySmth { public: TPlySmth() {}; - //TPlySmth &operator=(const TPlySmth &src) { return assign(src); }; - void bswap() { - bswap_32(m_smth.as<u32>()); - bswap_32(m_smth1.as<u32>()); + bswap_32(reinterpret_cast<u32 *>(&m_smth)); + bswap_32(reinterpret_cast<u32 *>(&m_smth1)); }; - - TPlySmth &assign(const TPlySmth &src) /*{ - m_smth = src.m_smth; - }*/; - - PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth, 4); - PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth1, 4); - - friend class TProtocol; -protected: - TArray<u8, 4> m_smth; - TArray<u8, 4> m_smth1; +public: + u8 m_smth[4]; + u8 m_smth1[4]; }; #endif |