mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 04:26:32 +08:00
Bug: none Change-Id: I4ac9c6a9685a4699ddf91c71a88ad070f43128b0 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5756162 Reviewed-by: Simon Zünd <szuend@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
16 lines
234 B
JavaScript
16 lines
234 B
JavaScript
const b4a = require('b4a')
|
|
|
|
module.exports = class PassThroughDecoder {
|
|
constructor (encoding) {
|
|
this.encoding = encoding
|
|
}
|
|
|
|
decode (tail) {
|
|
return b4a.toString(tail, this.encoding)
|
|
}
|
|
|
|
flush () {
|
|
return ''
|
|
}
|
|
}
|