mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-22 10:26:18 +00:00
perf[protocol]: 支持cpp协议增加字段向前兼容
This commit is contained in:
@@ -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