Native bindings for rabin-cdc
npm install rabin-native
const Rabin = require('rabin-native')
const r = new Rabin()
const chunks = r.push(Buffer.from('some chunk of data'))
for (let i = 0; i < chunks; i++) {
console.log('chunk length: ' + r.chunks[i])
}
Makes a new rabin instance
Push data to the chunker. Returns the amount of chunks found.
A Uint32Array containing the length of the chunks found.
Finalises the chunker. Call this when your input stream is done. Returns the remaining chunk count.
MIT