mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-23 10:16:18 +00:00
feat[protocol]: 提升协议的兼容性,协议向前兼容
This commit is contained in:
1 parent
389de2b6b3
commit
78cb8bd2fc
28 files changed
+1192
-1315
No files matched your search
@@ -31,6 +31,9 @@ func setReadOffset(readIndex: int) -> void:
|
||||
func getReadOffset() -> int:
|
||||
return readOffset
|
||||
|
||||
func isReadable() -> bool:
|
||||
return writeOffset > readOffset
|
||||
|
||||
# -------------------------------------------------write/read-------------------------------------------------
|
||||
func writePoolByteArray(value: PoolByteArray):
|
||||
var length = value.size()
|
||||
|
||||
Reference in new issue
Block a user