Newer
Older
vue-indexer / node_modules / text-decoder / lib / pass-through-decoder.js
@eugene-sukhodolskiy eugene-sukhodolskiy on 24 Sep 273 bytes v1.0
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 ''
  }
}