decord/source/__polyfill/05xxx/module_5303.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

23 lines
475 B
JavaScript

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