Initial commit: GamePortrait 竖屏版 - 深色豪华主题

This commit is contained in:
li
2026-01-16 17:47:53 +08:00
commit 40976e4b45
26611 changed files with 2843638 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
*/
"use strict";
class ArraySerializer {
serialize(array, { write }) {
write(array.length);
for (const item of array) write(item);
}
deserialize({ read }) {
const length = read();
const array = [];
for (let i = 0; i < length; i++) {
array.push(read());
}
return array;
}
}
module.exports = ArraySerializer;