BIG cursor progress

- Add extensive tests for packet cursor, sample cursor, and call serialization
- Major PacketCursor refactor
- Add PacketReader
- Many SampleCursor fixes, harden the behavior
- Typo fixes and various other small things
This commit is contained in:
Vanilagy
2025-11-27 16:26:46 +01:00
parent 52d7ba07b0
commit f86294b802
18 changed files with 2160 additions and 425 deletions
+45 -2
View File
@@ -23,12 +23,55 @@
console.log(await cursor.next());
*/
//console.log(await cursor.seekTo(4.9))
//console.log(await cursor.seekTo(5.1))
//return;
const mh = [
cursor.seekTo(2.10),
cursor.seekTo(5),
cursor.seekTo(2.05),
//cursor.seekTo(4.9),
//cursor.seekTo(4.9),
//cursor.seekTo(4.9),
//cursor.seekTo(4.9),
//cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.next(),
cursor.close(),
//cursor.next(),
//cursor.next(),
//cursor.next(),
//cursor.next(),
//cursor.close(),
//cursor.seekTo(2.10),
//cursor.seekTo(5),
//cursor.close(),
//cursor.seekTo(2.00),
];
/*
for (const yo of mh) {
const samp = await yo;
console.log(samp)
samp?.close();
}
console.log("done")
*/
console.log(await Promise.all(mh));
//console.log(await cursor.seekTo(2.05));