nouveau-theatre-de-besancon/node_modules/text-decoder/lib/pass-through-decoder.js

20 lines
273 B
JavaScript
Raw Normal View History

2024-09-20 10:32:49 +02:00
const b4a = require('b4a')
module.exports = class PassThroughDecoder {
constructor (encoding) {
this.encoding = encoding
}
get remaining () {
return 0
}
decode (tail) {
return b4a.toString(tail, this.encoding)
}
flush () {
return ''
}
}