There are calls to assert() which will not be evaluated if NDEBUG is defined.
There are calls to assert() which will not be evaluated if NDEBUG is defined.
Oh. The class has been working fine for me =/ It crashes when I close WoW though. Not really an issue, since I'm closing it anyway.
If you want bytes, use "%02x" (or %02X for uppercase). That will give you byte values truncated to the byte, padded with zeros for a nice constant-width look.
As to needing to little-endian all the bytes, well yeah. You have to know the structure widths to do the ntoh (or whatever). But since you need to know the structure widths in order to do anything useful with the packets (especially since the interesting ones don't use fixed-width structures), that's not exactly a huge additional burden.
Once you know how to decode the packets structurally, 90% of the work is done for you. Have fun with SMSG_OBJECT_UPDATE...![]()
Don't believe everything you think.