24 lines
784 B
JavaScript
24 lines
784 B
JavaScript
// ============================================================
|
|
// Module ID: 69682
|
|
// ============================================================
|
|
;(window.__modules__ = window.__modules__ || {})[69682] = (t, n, i) => {
|
|
const r = i(31620);
|
|
function e(t) {
|
|
((this.mode = r.BYTE),
|
|
(this.data = "string" == typeof t ? new TextEncoder().encode(t) : new Uint8Array(t)));
|
|
}
|
|
((e.getBitsLength = function (t) {
|
|
return 8 * t;
|
|
}),
|
|
(e.prototype.getLength = function () {
|
|
return this.data.length;
|
|
}),
|
|
(e.prototype.getBitsLength = function () {
|
|
return e.getBitsLength(this.data.length);
|
|
}),
|
|
(e.prototype.write = function (t) {
|
|
for (let n = 0, i = this.data.length; n < i; n++) t.put(this.data[n], 8);
|
|
}),
|
|
(t.exports = e));
|
|
};
|