codigo0/backend/node_modules/text-decoder/lib/pass-through-decoder.js
planetazuzu 0201f16cf4
Some checks are pending
Auto Deploy to Server / deploy (push) Waiting to run
Update lab configuration 2026-03-22
2026-03-22 22:50:29 +01:00

20 lines
273 B
JavaScript
Executable file

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