Files
screenshot-tools/node_modules/text-decoder/lib/pass-through-decoder.js
Frank John Begornia c926590e1d first commit
2025-12-23 01:51:15 +08:00

20 lines
273 B
JavaScript

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 ''
}
}