Braydon Fuller
8c4301cb0a
Tests: Updated tests to run from sub-directories and fixed crypto and encoding related missing updates.
10 years ago
Manuel Araoz
deee8c6887
refactor protocol->encoding
10 years ago
Manuel Araoz
ea05ec625e
fix tests for bufferreader
10 years ago
Manuel Araoz
f0a4aebdfb
reorder tests
10 years ago
Ryan X. Charles
0212e4bd4c
replace .buffer with .read
10 years ago
Ryan X. Charles
6e1dfd3003
allow bufferreader.read to specify length
...to be more symmetric with the write function of bufferwriter
10 years ago
Ryan X. Charles
4bb9105b2d
varInt -> varint
I don't like having to capitalize things unnecessarily
10 years ago
Ryan X. Charles
d363956ba1
add readVarIntBuf function
...will be useful for new Varint class
10 years ago
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.
10 years ago
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.
10 years ago
Ryan X. Charles
8b3ad7ac85
read a buffer, like slicing while iterating pos
11 years ago
Ryan X. Charles
572582938f
more convenient bufferreader
11 years ago
Ryan X. Charles
bdb8daaf07
remove redundant "test." from test names
11 years ago
Ryan X. Charles
3475ee973c
BufferReader.prototype.set
11 years ago
Ryan X. Charles
ddc9e2d2a4
handle varInts better
11 years ago
Ryan X. Charles
cde44d689c
fix precision error by handling BNs correctly
11 years ago
Ryan X. Charles
5e3ad3d09d
BufferReader
11 years ago