decord/source/__polyfill/05xxx/module_5232.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

23 lines
475 B
JavaScript

// Module ID: 5232
// Function ID: 5233
// Dependencies: []
// Module 5232
let c0 = 18761;
let c1 = 19789;
export default {
BIG_ENDIAN: 19789,
LITTLE_ENDIAN: 18761,
getByteOrder(getUint16, c5) {
if (getUint16.getUint16(c5) === c0) {
return c0;
} else if (getUint16.getUint16(c5) === c1) {
return c1;
} else {
const _Error = Error;
const error = new Error("Illegal byte order value. Faulty image.");
throw error;
}
}
};