fix typo bytesRead -> bytes

master
Stefan Thomas 8 years ago
parent 455eca54c6
commit 8d15a90f10

@ -10,10 +10,10 @@ function read(buf, offset) {
, counter = offset
, b
, l = buf.length
do {
if(counter >= l) {
read.bytesRead = 0
read.bytes = 0
return undefined
}
b = buf[counter++]
@ -22,8 +22,8 @@ function read(buf, offset) {
: (b & REST) * Math.pow(2, shift)
shift += 7
} while (b >= MSB)
read.bytes = counter - offset
return res
}

Loading…
Cancel
Save