mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
rename getUint32 to getInt32 and collect readInt*() in util.js
This commit is contained in:
parent
b33f4adf88
commit
b06c10cbbd
6 changed files with 50 additions and 72 deletions
|
@ -46,7 +46,7 @@ var Stream = (function StreamClosure() {
|
|||
var b1 = this.getByte();
|
||||
return (b0 << 8) + b1;
|
||||
},
|
||||
getUint32: function Stream_getUint32() {
|
||||
getInt32: function Stream_getInt32() {
|
||||
var b0 = this.getByte();
|
||||
var b1 = this.getByte();
|
||||
var b2 = this.getByte();
|
||||
|
@ -164,7 +164,7 @@ var DecodeStream = (function DecodeStreamClosure() {
|
|||
var b1 = this.getByte();
|
||||
return (b0 << 8) + b1;
|
||||
},
|
||||
getUint32: function DecodeStream_getUint32() {
|
||||
getInt32: function DecodeStream_getInt32() {
|
||||
var b0 = this.getByte();
|
||||
var b1 = this.getByte();
|
||||
var b2 = this.getByte();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue