Quantumbraid's picture
download
raw
342 Bytes
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))
}
}

Xet Storage Details

Size:
342 Bytes
·
Xet hash:
8a073d6ae1bdf46513004219b0497176d68fd1f7722442cd161e6e9f8bb7a320

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.