Node updated. Some todos.

This commit is contained in:
Norm Rasmussen
2024-09-23 20:52:09 -04:00
parent 8bfaca8375
commit f25622067f
2041 changed files with 124145 additions and 110445 deletions

View File

@ -0,0 +1,17 @@
module.exports = class BrowserDecoder {
constructor (encoding) {
this.decoder = new TextDecoder(encoding === 'utf16le' ? 'utf16-le' : encoding)
}
get remaining () {
return -1
}
decode (data) {
return this.decoder.decode(data, { stream: true })
}
flush () {
return this.decoder.decode(new Uint8Array(0))
}
}