decord/source/__polyfill/05xxx/module_5306.js
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

23 lines
475 B
JavaScript

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