17 lines
389 B
JavaScript
17 lines
389 B
JavaScript
// Metro module 4807 (f4808).
|
|
let c2950_0 = 18761;
|
|
let c2950_1 = 19789;
|
|
export default {
|
|
BIG_ENDIAN: 19789,
|
|
LITTLE_ENDIAN: 18761,
|
|
getByteOrder: function getByteOrder(a0, a1) {
|
|
if (a0.getUint16(a1) === c2950_0) {
|
|
return c2950_0;
|
|
}
|
|
if (a0.getUint16(a1) === c2950_1) {
|
|
return c2950_1;
|
|
}
|
|
throw new Error("Illegal byte order value. Faulty image.");
|
|
}
|
|
};
|