22 lines
477 B
JavaScript
22 lines
477 B
JavaScript
// Module ID: 4976
|
|
// Function ID: 4977
|
|
// Dependencies: []
|
|
|
|
// Module 4976
|
|
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;
|
|
const error = new Error("Illegal byte order value. Faulty image.");
|
|
throw error;
|
|
}
|
|
}
|
|
};
|