decord/source/module_5043.js
2026-08-25 06:04:03 +00:00

22 lines
471 B
JavaScript

// Module ID: 5043
// Function ID: 5044
// Dependencies: []
// Module 5043
let c0 = 18761;
let c1 = 19789;
arg5.default = {
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;
error = new Error("Illegal byte order value. Faulty image.");
throw error;
}
}
};