perf[protocol]: 支持TypeScript

This commit is contained in:
jaysunxiao
2022-06-06 17:55:43 +08:00
parent e4ac24a40e
commit 1fa4ff032e
37 changed files with 4386 additions and 112 deletions
@@ -723,8 +723,8 @@ const ByteBuffer = function() {
};
this.writeLongSet = function(set) {
if (array === null) {
set.writeInt(0);
if (set === null) {
this.writeInt(0);
} else {
this.writeInt(set.size);
set.forEach(element => {