mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-22 20:15:34 +00:00
perf[protocol]: 支持cpp协议增加字段向前兼容
This commit is contained in:
1 parent
68fb890e0e
commit
389de2b6b3
13 files changed
+327
-253
No files matched your search
@@ -132,6 +132,10 @@ namespace zfoo {
|
||||
}
|
||||
}
|
||||
|
||||
inline bool isReadable() {
|
||||
return m_writerIndex > m_readerIndex;
|
||||
}
|
||||
|
||||
inline void writeBool(const bool &value) {
|
||||
ensureCapacity(1);
|
||||
int8_t v = value ? 1 : 0;
|
||||
|
||||
Reference in new issue
Block a user