MCPcopy
hub / github.com/kopia/kopia / NextSplitPoint

Method NextSplitPoint

repo/splitter/splitter.go:25–25  ·  view source on GitHub ↗

NextSplitPoint() determines the location of the next split point in the given slice of bytes. It returns value `n` between 1..len(b) if a split point happens AFTER byte n and the splitter has consumed `n` bytes. If there is no split point, the splitter returns -1 and consumes all bytes from the slic

(b []byte)

Source from the content-addressed store, hash-verified

23 // has consumed `n` bytes.
24 // If there is no split point, the splitter returns -1 and consumes all bytes from the slice.
25 NextSplitPoint(b []byte) int
26 MaxSegmentSize() int
27 Reset()
28 Close()

Callers 5

runMethod · 0.65
getSplitPointsFunction · 0.65
getSplitPointsByteByByteFunction · 0.65
WriteMethod · 0.65

Implementers 3

rabinKarp64Splitterrepo/splitter/splitter_rabinkarp64.go
buzhash32Splitterrepo/splitter/splitter_buzhash32.go
fixedSplitterrepo/splitter/splitter_fixed.go

Calls

no outgoing calls

Tested by 3

getSplitPointsFunction · 0.52
getSplitPointsByteByByteFunction · 0.52