MCPcopy Create free account
hub / github.com/bobg/hashsplit / Split

Function Split

hashsplit.go:74–77  ·  view source on GitHub ↗

Split hashsplits its input using a default Splitter. See [Splitter.Split].

(r io.Reader)

Source from the content-addressed store, hash-verified

72// Split hashsplits its input using a default Splitter.
73// See [Splitter.Split].
74func Split(r io.Reader) (iter.Seq2[[]byte, int], *error) {
75 s := NewSplitter()
76 return s.Split(r)
77}
78
79// NewSplitter produces a new Splitter.
80// It may be customized before use by setting its MinSize and SplitBits fields.

Callers 3

TestSplitFunction · 0.85
TestSplitFewFunction · 0.85
buildTreeFunction · 0.85

Calls 2

SplitMethod · 0.95
NewSplitterFunction · 0.85

Tested by 3

TestSplitFunction · 0.68
TestSplitFewFunction · 0.68
buildTreeFunction · 0.68