Ryan X. Charles
54e705f7e8
missing semicolon
2014-09-15 14:53:42 -07:00
Ryan X. Charles
9cb31ebb6a
extra semicolon
2014-09-15 14:52:43 -07:00
Ryan X. Charles
4bb9105b2d
varInt -> varint
...
I don't like having to capitalize things unnecessarily
2014-09-15 14:41:46 -07:00
Ryan X. Charles
d363956ba1
add readVarIntBuf function
...
...will be useful for new Varint class
2014-09-15 14:27:42 -07:00
Ryan X. Charles
3c668c9cf0
readVarInt -> readVarIntNum
...
"varInt" refers to the varInt object, which is not actually implemented yet.
This function should therefore really be called readVarIntNum.
2014-09-15 14:19:08 -07:00
Ryan X. Charles
8e959426e2
support reading varInt nums up to js precision
...
Javascript only supports 64 bit floating points, which have uint precision up
to Math.pow(2, 53). We now support reading variable sized numbers up to that
size. If the number is bigger than that, then we need to use BN.
2014-09-15 13:58:24 -07:00
Ryan X. Charles
9d5d136993
"function" not used
2014-09-15 13:48:51 -07:00
Ryan X. Charles
8b3ad7ac85
read a buffer, like slicing while iterating pos
2014-09-01 16:40:31 -07:00
Ryan X. Charles
572582938f
more convenient bufferreader
2014-09-01 15:53:26 -07:00
Ryan X. Charles
3475ee973c
BufferReader.prototype.set
2014-08-28 15:52:32 -07:00
Ryan X. Charles
ddc9e2d2a4
handle varInts better
2014-08-21 11:47:09 -07:00
Ryan X. Charles
cde44d689c
fix precision error by handling BNs correctly
2014-08-20 12:35:55 -07:00
Ryan X. Charles
5e3ad3d09d
BufferReader
2014-08-18 18:04:47 -07:00