summaryrefslogtreecommitdiff
path: root/include/pso/TPlySmth.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-04 17:49:03 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-04 17:49:03 -0400
commitcb40b0808a639fa0de330cb2b88574a0e8b4d2d5 (patch)
tree874b64b99c55f244d97d627f61869c084eea09ed /include/pso/TPlySmth.h
parent1892a429d2b635b369684676f0528a3320f95cc2 (diff)
TProtocol: Match ctor
The reason for the large change is because I was trying to figure out why `TTcpSocket`'s ctor was so disjointed from the rest of the functions. Turns out, it's inlined, and inlining was turned off. Most likely, the whole codebase has inlining turned off. oof, press f `TArray`.
Diffstat (limited to 'include/pso/TPlySmth.h')
-rw-r--r--include/pso/TPlySmth.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/pso/TPlySmth.h b/include/pso/TPlySmth.h
index 660955f..99bf763 100644
--- a/include/pso/TPlySmth.h
+++ b/include/pso/TPlySmth.h
@@ -4,26 +4,28 @@
#include <global_types.h>
#include <pso/protocol.h>
#include <pso/TArray.h>
+#include <pso/TProtocol.h>
class TPlySmth {
public:
- TPlySmth() /*{}*/;
+ TPlySmth() {};
- TPlySmth &operator=(const TPlySmth &src) /*{ return assign(src); }*/;
+ //TPlySmth &operator=(const TPlySmth &src) { return assign(src); };
- void bswap() /*{
- bswap_32(m_smth.at_as<u32>(0));
- bswap_32(m_smth1.at_as<u32>(0));
- }*/;
+ void bswap() {
+ bswap_32(m_smth.as<u32>());
+ bswap_32(m_smth1.as<u32>());
+ };
TPlySmth &assign(const TPlySmth &src) /*{
m_smth = src.m_smth;
- m_smth1 = src.m_smth1;
}*/;
PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth, 4);
PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth1, 4);
-private:
+
+ friend class TProtocol;
+protected:
TArray<u8, 4> m_smth;
TArray<u8, 4> m_smth1;
};