decord/source/__polyfill/05xxx/module_5299.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

23 lines
475 B
JavaScript

// Module ID: 5299
// Function ID: 5300
// Dependencies: []
// Module 5299
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;
}
}
};