summaryrefslogtreecommitdiff
path: root/include/m_system.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-12-18 12:39:27 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-12-18 12:43:33 +0300
commit59f927ee88735b97514c3224ce5929a99dabfa8b (patch)
tree223618f981b5c355a604210a00f860200062f82d /include/m_system.h
parent9e6618fe6f5798462a4d9e410261e152283d7bd6 (diff)
some useful helpers for MBinBuffer
Diffstat (limited to 'include/m_system.h')
-rw-r--r--include/m_system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/m_system.h b/include/m_system.h
index 3828b8e049..67fb3a3e08 100644
--- a/include/m_system.h
+++ b/include/m_system.h
@@ -508,6 +508,11 @@ public:
// adds a buffer to the end
void append(const void *pBuf, size_t bufLen);
+ MBinBuffer& operator <<(uint8_t);
+ MBinBuffer& operator <<(uint16_t);
+ MBinBuffer& operator <<(uint32_t);
+ MBinBuffer& operator <<(uint64_t);
+
__forceinline void append(const MBinBuffer &buf)
{ append(buf.data(), buf.length());
}