feat: switch to array buffer

This commit is contained in:
TrèsAbhi committed 2024-02-07 10:34:13 -06:00
1 parent 9cfa2357b0
commit cb2846a256
7 files changed
+45 -53

No files matched your search

+2 -2
View File
@@ -121,7 +121,7 @@ export class ScpgReadStream extends ReadStream {
}
case KAType.KEYED_ARCHIVE: {
this.skip(4); // UInt32 length of the nested archive in bytes
this.seek(4); // UInt32 length of the nested archive in bytes
return this.ka(stringTable);
}
@@ -195,7 +195,7 @@ export class ScpgReadStream extends ReadStream {
}
}
ka(stringTable?: Record<number, string>) {
this.skip(2); // "KA"
this.seek(2); // "KA"
const version = this.uint16();
const pairs: Record<string, any> = {};