aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/binaryXHR.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/js/binaryXHR.js b/js/binaryXHR.js
index 63186b3..6749273 100644
--- a/js/binaryXHR.js
+++ b/js/binaryXHR.js
@@ -63,12 +63,15 @@ function BinaryFile(strData, iDataOffset, iDataLength) {
63 throw new InvalidBinaryFile("Unsupported type " + (typeof strData)); 63 throw new InvalidBinaryFile("Unsupported type " + (typeof strData));
64 } 64 }
65 65
66 this.getEndianByteAt = function(iOffset,width,delta) { 66 if (switch_endian) {
67 if (this.switch_endian) 67 this.getEndianByteAt = function(iOffset, width, delta) {
68 return this.getByteAt(iOffset+width-delta-1); 68 return this.getByteAt(iOffset + width - delta - 1);
69 else 69 };
70 return this.getByteAt(iOffset+delta); 70 } else {
71 }; 71 this.getEndianByteAt = function(iOffset, width, delta) {
72 return this.getByteAt(iOffset + delta);
73 };
74 }
72 75
73 this.getLength = function() { 76 this.getLength = function() {
74 return dataLength; 77 return dataLength;