Files
discord-decomp/sources/by-id/module-04780.jsx
T
2026-07-27 16:20:00 +03:00

35 lines
1.9 KiB
React

/* Metro module 4780; source: unknown; dependencies: [4748] */
function _fun41318(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4958:6, offset: 0x0111bbf4, size: 114 bytes, params: 8, frame: 16
const getAlpha = function(a0) {
var value = 16 & a0;
return {value: value ? 1 : 0, description: value ? 'Yes' : 'No'};
};
const getAnimation = function(a0) {
var value = 2 & a0;
return {value: value ? 1 : 0, description: value ? 'Yes' : 'No'};
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = {read: read_41322};
}
function getThreeByteValue(a0, a1) { // fn#41321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4958:458, offset: 0x0111bcc0, size: 150 bytes, params: 3, frame: 20
let value = importDefault(4748) /* metro dependency 4748 */;
value = value.getByteAt(a0, a1);
value += 256 * (importDefault(4748) /* metro dependency 4748 */).getByteAt(a0, a1 + 1);
value = value + 65536 * (importDefault(4748) /* metro dependency 4748 */).getByteAt(a0, a1 + 2) + 1;
return {value: value, description: value + 'px'};
}
function read_41322(a0, a1) { // fn#41322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4958:104, offset: 0x0111bd56, size: 128 bytes, params: 3, frame: 16
const object2 = {};
const byteAt = (importDefault(4748) /* metro dependency 4748 */).getByteAt(a0, a1);
object2.Alpha = getAlpha(byteAt);
object2.Animation = getAnimation(byteAt);
const getThreeByteValueBinding = getThreeByteValue;
object2.ImageWidth = getThreeByteValueBinding(a0, a1 + env0_2);
object2.ImageHeight = getThreeByteValueBinding(a0, a1 + env0_3);
return object2;
}