decord/source/1302_reflectionLongConvert.js

18 lines
505 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1302
2026-07-24 07:16:23 +00:00
// Function ID: 15213
2026-07-20 16:05:17 +00:00
// Name: reflectionLongConvert
2026-07-23 10:11:24 +00:00
// Dependencies: [1297]
2026-07-20 16:05:17 +00:00
// Module 1302 (reflectionLongConvert)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
arg5.reflectionLongConvert = function reflectionLongConvert(ZERO, STRING) {
2026-07-23 10:11:24 +00:00
if (require(1297) /* RepeatType */.LongType.BIGINT === STRING) {
2026-07-20 16:05:17 +00:00
return ZERO.toBigInt();
2026-07-23 10:11:24 +00:00
} else if (require(1297) /* RepeatType */.LongType.NUMBER === STRING) {
2026-07-20 16:05:17 +00:00
return ZERO.toNumber();
} else {
return ZERO.toString();
}
};