Browse Source

bytesRead,bytesWritten -> bytes

master
Mathias Buus 9 years ago
parent
commit
5759d8a705
  1. 2
      decode.js
  2. 2
      encode.js

2
decode.js

@ -18,7 +18,7 @@ function read(buf, offset) {
shift += 7
} while (b >= MSB)
read.bytesRead = counter - offset
read.bytes = counter - offset
return res
}

2
encode.js

@ -20,7 +20,7 @@ function encode(num, out, offset) {
}
out[offset] = num | 0
encode.bytesWritten = offset - oldOffset + 1
encode.bytes = offset - oldOffset + 1
return out
}

Loading…
Cancel
Save