Skip to content

nasdf/fastcdc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastCDC

This package implements the Fast Content Defined Chunking algorithm along with some utilities to make it simple to use.

Usage

import (
    "github.com/nasdf/fastcdc"
)

options, _ := fastcdc.WithAverageSize(256, 2)
chunker, _ := fastcdc.NewChunker(reader, options)

for chunker.HasNext() {
    chunk, _ := chunker.Next()
}