diff options
Diffstat (limited to 'protocols/WhatsAppWeb/src/utils.h')
-rw-r--r-- | protocols/WhatsAppWeb/src/utils.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/protocols/WhatsAppWeb/src/utils.h b/protocols/WhatsAppWeb/src/utils.h index aa74f865f2..d37c8fb187 100644 --- a/protocols/WhatsAppWeb/src/utils.h +++ b/protocols/WhatsAppWeb/src/utils.h @@ -45,32 +45,3 @@ public: CMStringA readString(int tag); bool readNode(JSONNode&); }; - -///////////////////////////////////////////////////////////////////////////////////////// -// object serialization - -#define WAS_STRING 1 -#define WAS_BINARY 2 -#define WAS_BOOL 3 -#define WAS_INT8 4 -#define WAS_INT64 5 - -struct WAS_Field -{ - uint8_t type; - uint8_t len; - uint16_t offset; -}; - -class WAS_Decoder -{ - const BYTE *m_buf, *m_limit; - -public: - WAS_Decoder(const void *pData, size_t cbLen) : - m_buf((BYTE*)pData), - m_limit((BYTE*)pData + cbLen) - {} - - bool read(void *pObj, const WAS_Field *fields, size_t iFieldCount); -}; |