feat: add support for kuwo ios ekey db

This commit is contained in:
鲁树人
2023-11-08 20:40:41 +00:00
parent 85ab69d41d
commit ecc34aaf44
17 changed files with 186 additions and 80 deletions

14
src/util/mmkv/qm.ts Normal file
View File

@@ -0,0 +1,14 @@
import { MMKVParser } from '../MMKVParser';
export function parseAndroidQmEKey(view: DataView): Map<string, string> {
const mmkv = new MMKVParser(view);
const result = new Map<string, string>();
while (!mmkv.eof) {
const key = mmkv.readString();
const value = mmkv.readStringValue();
if (value) {
result.set(key, value);
}
}
return result;
}