diff options
Diffstat (limited to 'protocols/Facebook/src/mqtt.h')
-rw-r--r-- | protocols/Facebook/src/mqtt.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/Facebook/src/mqtt.h b/protocols/Facebook/src/mqtt.h index 70a2fc4671..dc7fcd41fc 100644 --- a/protocols/Facebook/src/mqtt.h +++ b/protocols/Facebook/src/mqtt.h @@ -59,8 +59,12 @@ class FbThrift MBinBuffer m_buf; public: - __inline void* data() const { return m_buf.data(); } - __inline size_t size() const { return m_buf.length(); } + __forceinline void* data() const { return m_buf.data(); } + __forceinline size_t size() const { return m_buf.length(); } + + __forceinline void reset(const size_t cbLen, void *pData) + { m_buf.assign(pData, cbLen); + } FbThrift& operator<<(uint8_t); FbThrift& operator<<(const char *); |