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 |
Mathias Buus
|
2dbd6efe61
|
throw instead of returning undefined
|
8 years ago |
Stefan Thomas
|
204feb930d
|
update tests and maintain old behavior for backwards compatibility
|
8 years ago |
Stefan Thomas
|
8d15a90f10
|
fix typo bytesRead -> bytes
|
8 years ago |
Chris Dickinson
|
f48d840c95
|
Merge pull request #10 from mafintosh/bytes
bytesRead, bytesWritten -> bytes
|
10 years ago |
Mathias Buus
|
5759d8a705
|
bytesRead,bytesWritten -> bytes
|
10 years ago |
Dominic Tarr
|
490e48499d
|
do not read outside the bounds of the buffer
|
10 years ago |
Dominic Tarr
|
5a00978b1b
|
instead of throwing, return undefined in invalid (too short) buffers
|
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 |
Tim Caswell
|
4284621de5
|
Change decode to use prototype instead of closure
|
11 years ago |
Tim Caswell
|
20acc39be4
|
Make encode and decode accessable standalone
|
11 years ago |