package
0.0.0-20230603152432-e23051be1cc7
Repository: https://github.com/sevenrats/boxo.git
Documentation: pkg.go.dev
# Packages
This file generates bytehash LUT.
# Functions
Chan returns a channel that receives each of the chunks produced by a splitter, along with another one for errors.
DefaultSplitter returns a SizeSplitter with the DefaultBlockSize.
FromString returns a Splitter depending on the given string: it supports "default" (""), "size-{size}", "rabin", "rabin-{blocksize}", "rabin-{min}-{avg}-{max}" and "buzhash".
No description provided by the author
NewRabin creates a new Rabin splitter with the given average block size.
NewRabinMinMax returns a new Rabin splitter which uses the given min, average and max block sizes.
NewSizeSplitter returns a new size-based Splitter with the given block size.
SizeSplitterGen returns a SplitterGen function which will create a splitter with the given size when called.
# Constants
No leaf block should contain more than 1MiB of payload data ( wrapping overhead aside ) This effectively mandates the maximum chunk size See discussion at https://github.com/sevenrats/boxo/chunker/pull/21#discussion_r369124879 for background.
DefaultBlockSize is the chunk size that splitters produce (or aim to).
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
IpfsRabinPoly is the irreducible polynomial of degree 53 used by for Rabin.
# Interfaces
A Splitter reads bytes from a Reader and creates "chunks" (byte slices) that can be used to build DAG nodes.
# Type aliases
SplitterGen is a splitter generator, given a reader.