mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 10:17:57 +00:00
18 lines
451 B
JavaScript
18 lines
451 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.TextDecoder = void 0;
|
|
class TextDecoder {
|
|
__encoding;
|
|
constructor(encoding) {
|
|
this.__encoding = encoding;
|
|
}
|
|
decode(value) {
|
|
let result = '';
|
|
for (let i = 0, count = value.length; i < count; i++) {
|
|
result += String.fromCharCode(value[i]);
|
|
}
|
|
return result;
|
|
}
|
|
}
|
|
exports.TextDecoder = TextDecoder;
|