• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/lighttpd-1.4.39/external_file/js/

Lines Matching refs:getByteAt

741 0)&&r[e].nodeName=="D:href")return String(r[e].childNodes[0].nodeValue)}}}function DrawImage(a,d,e,j){if(!(isBrowser("msie")&&getInternetExplorerVersion()<=8)){var i=new Image;i.src=a.src;if(i.width>0&&i.height>0)j?(a.width=d,a.height=i.height*d/i.width):i.width/i.height>=d/e?i.width>d?(a.width=d,a.height=i.height*d/i.width):(a.width=i.width,a.height=i.height):i.height>e?(a.height=e,a.width=i.width*e/i.height):(a.width=i.width,a.height=i.height)}};(function(){var a=function(a,d,e){var q=a,r=d||0,t=0;this.getRawData=function(){return q};if(typeof a=="string")t=e||q.length,this.getByteAt=function(a){return q.charCodeAt(a+r)&255};else if(typeof a=="unknown")t=e||IEBinary_getLength(q),this.getByteAt=function(a){return IEBinary_getByteAt(q,a+r)};this.getLength=function(){return t};this.getSByteAt=function(a){a=this.getByteAt(a);return a>127?a-256:a};this.getShortAt=function(a,d){var g=d?(this.getByteAt(a)<<8)+this.getByteAt(a+1):(this.getByteAt(a+
742 1)<<8)+this.getByteAt(a);g<0&&(g+=65536);return g};this.getSShortAt=function(a,d){var g=this.getShortAt(a,d);return g>32767?g-65536:g};this.getLongAt=function(a,d){var g=this.getByteAt(a),c=this.getByteAt(a+1),b=this.getByteAt(a+2),e=this.getByteAt(a+3),g=d?(((g<<8)+c<<8)+b<<8)+e:(((e<<8)+b<<8)+c<<8)+g;g<0&&(g+=4294967296);return g};this.getSLongAt=function(a,d){var g=this.getLongAt(a,d);return g>2147483647?g-4294967296:g};this.getStringAt=function(a,d){for(var g=[],c=a,b=0;c<a+d;c++,b++)g[b]=String.fromCharCode(this.getByteAt(c));
743 return g.join("")};this.getCharAt=function(a){return String.fromCharCode(this.getByteAt(a))};this.toBase64=function(){return window.btoa(q)};this.fromBase64=function(a){q=window.atob(a)}},d=function(){function d(){var a=null;window.XMLHttpRequest?a=new XMLHttpRequest:window.ActiveXObject&&(a=new ActiveXObject("Microsoft.XMLHTTP"));return a}function e(a,i,o){var f=d();if(f){if(i)typeof f.onload!="undefined"?f.onload=function(){f.status=="200"?i(this):o&&o();f=null}:f.onreadystatechange=function(){f.readyState==
747 var e={};(function(){function a(f,p){d(f.src,function(a){a=i(a.binaryResponse);f.exifdata=a;p&&p()})}function i(a){if(a.getByteAt(0)!=255||a.getByteAt(1)!=216)return!1;for(var d=2,g=a.getLength();d<g;){if(a.getByteAt(d)!=255)return t&&console.log("Not a valid marker at offset "+d+", found: "+a.getByteAt(d)),!1;var c=a.getByteAt(d+1);if(c==22400)return t&&console.log("Found 0xFFE1 marker"),r(a,d+4,a.getShortAt(d+2,!0)-2);else if(c==225)return t&&console.log("Found 0xFFE1 marker"),r(a,d+4,a.getShortAt(d+
748 2,!0)-2);else d+=2+a.getShortAt(d+2,!0)}}function o(a,d,g,c,b){for(var e=a.getShortAt(g,b),j={},i=0;i<e;i++){var o=g+i*12+2,r=c[a.getShortAt(o,b)];!r&&t&&console.log("Unknown tag: "+a.getShortAt(o,b));j[r]=q(a,o,d,g,b)}return j}function q(a,d,g,c,b){var e=a.getShortAt(d+2,b),c=a.getLongAt(d+4,b),g=a.getLongAt(d+8,b)+g;switch(e){case 1:case 7:if(c==1)return a.getByteAt(d+8,b);else{g=c>4?g:d+8;d=[];for(e=0;e<c;e++)d[e]=a.getByteAt(g+e);return d}case 2:return a.getStringAt(c>4?g:d+8,c-1);case 3:if(c==