初始化项目

This commit is contained in:
2026-09-01 22:15:50 +08:00
commit b5a26a8848
11217 changed files with 1710987 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
module.exports = class BrowserDecoder {
constructor (encoding) {
this.decoder = new TextDecoder(encoding === 'utf16le' ? 'utf16-le' : encoding)
}
decode (data) {
return this.decoder.decode(data, { stream: true })
}
flush () {
return this.decoder.decode(new Uint8Array(0))
}
}