decord/source/module_4902.js

23 lines
477 B
JavaScript
Raw Normal View History

2026-08-03 11:20:01 +00:00
// Module ID: 4902
// Function ID: 4903
2026-07-31 08:44:05 +00:00
// Dependencies: []
2026-08-03 11:20:01 +00:00
// Module 4902
2026-08-04 08:36:32 +00:00
let c0 = 18761;
let c1 = 19789;
2026-07-31 08:44:05 +00:00
arg5.default = {
2026-08-04 08:36:32 +00:00
BIG_ENDIAN: 19789,
LITTLE_ENDIAN: 18761,
getByteOrder(getUint16, sum) {
if (getUint16.getUint16(sum) === c0) {
return c0;
} else if (getUint16.getUint16(sum) === c1) {
return c1;
} else {
const _Error = Error;
const error = new Error("Illegal byte order value. Faulty image.");
throw error;
2026-07-31 08:44:05 +00:00
}
}
};