Cayman
|
fcebf3acdc
|
add bounds checking to encode and decode
|
4 years ago |
Chris Dickinson
|
15598cb409
|
BREAKING: throw RangeError when decoding bad buf
|
8 years ago |
Stefan Thomas
|
204feb930d
|
update tests and maintain old behavior for backwards compatibility
|
8 years ago |
Chris Dickinson
|
f48d840c95
|
Merge pull request #10 from mafintosh/bytes
bytesRead, bytesWritten -> bytes
|
10 years ago |
Mathias Buus
|
d2f7af4ff9
|
fixed tests
|
10 years ago |
Dominic Tarr
|
6639d2d256
|
test invalid buffers, set bytesRead = 0, and return undefined
|
10 years ago |
Chris Dickinson
|
c6a6a844c5
|
Merge pull request #7 from dominictarr/encoding-length
Encoding length
|
10 years ago |
Dominic Tarr
|
d51a128ab2
|
remove console.log
|
10 years ago |
Dominic Tarr
|
03189c9ca9
|
test for encoding length
|
10 years ago |
Dominic Tarr
|
10da3a6d33
|
test the largest numbers
|
10 years ago |
Dominic Tarr
|
e55b25d840
|
add tests for large numbers - up to 2^51, max integer that a js number can represent
|
10 years ago |
Mathias Buus
|
73450c2c6b
|
tests for bytesWritten
|
10 years ago |
Max Ogden
|
a058f9360f
|
add .bytesRead property to varint.decode
|
11 years ago |
Max Ogden
|
50ae23c9e9
|
also return length from decode
|
11 years ago |
Max Ogden
|
8c42c841d6
|
switch out the accumulator reader for a faster buffer reader
|
11 years ago |
Chris Dickinson
|
4aef3242dd
|
add more tests
|
11 years ago |
Chris Dickinson
|
7cd6c24150
|
initial code commit
|
11 years ago |