Files
discord-decomp/sources/by-id/module-09188.js
T
2026-07-28 01:06:53 +03:00

43 lines
1.6 KiB
JavaScript

/* Metro module 9188; source: unknown; dependencies: [] */
function _fun71988(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9373:6, offset: 0x01d34fd6, size: 77 bytes, params: 8, frame: 4
const closure = function() {
var Array = global.Array;
this.buffer = new Array();
this.length = 0;
};
closure.prototype = {get: function(a0) {
var property = global.Math;
property = this.buffer[property.floor(a0 / 8)];
return (property >>> 7 - a0 % 8 & 1) === 1;
}, put: function(a0, a1) {
var r1;
var value = 0;
if (value < a1) {
for (r1 = value; true; r1 = value) {
this.putBit((a0 >>> a1 - r1 - 1 & 1) === 1);
value = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (!(value < a1)) {
break;
}
}
}
}, getLengthInBits: function() {
return this.length;
}, putBit: function(a0) {
var property = global.Math;
var value = property.floor(this.length / 8);
if (this.buffer.length <= value) {
this.buffer.push(0);
}
if (a0) {
property = this.buffer;
property[value] = property[value] | 128 >>> this.length % 8;
}
property = this.length;
this.length = typeof property === 'bigint' ? property + 1n : +property + 1;
}};
module.exports = closure;
}
global.__d(_fun71988, 9188, []) /* metro module 9188 */;