Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 554 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 554 Bytes

FastCDC-C

Haskell bindings for sleepybishop's FastCDC implementation in C.

Usage

import FastCDC (chunkGenerator, ChunkSizeParams(..))

chunkGenerator 
        (ChunkSizeParams
          { minSize = 20000,
            avgSize = 50000,
            maxSize = 80000
          })
        filename
        (\start size -> undefined) -- Do something with the result

If you fancy parallel programming, there is also chunkGeneratorAsync which returns a Chan.

References