mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 02:07:56 +00:00
14 lines
316 B
JavaScript
14 lines
316 B
JavaScript
export 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;
|
|
}
|
|
}
|