alexgorbatchev / crc

Blazingly fast CRC implementations for node.js and browser
MIT License
349 stars 72 forks source link

Question: what's the previous arg for? #26

Closed AndrewEastwood closed 10 years ago

AndrewEastwood commented 10 years ago

Please take a look at this https://github.com/alexgorbatchev/node-crc/blob/master/lib/crc16.js#L14 and there is previous arg. I suppose it's for custom polynomial is't it?

alexgorbatchev commented 10 years ago

previous allows you to "combine" values, so it lets you process a stream as chuck's of data coming in