feat(serialize, parse): Number, String, Array, ConstString, ConstArray

This commit is contained in:
2025-08-03 10:54:21 +03:00
commit 26eb3b9068
15 changed files with 2969 additions and 0 deletions

15
test/index.js Normal file
View File

@ -0,0 +1,15 @@
export function filledDataView(bytes) {
const ab = new ArrayBuffer(bytes.length)
const dv = new DataView(ab)
for (let i = 0; i < bytes.length; i++) {
dv.setInt8(i, bytes[i])
}
return dv
}
export function sizedDataView(length) {
const ab = new ArrayBuffer(length)
return new DataView(ab)
}