MCPcopy Create free account
hub / github.com/antonmedv/gitmal / checkBinarySrcSize

Function checkBinarySrcSize

pkg/gitdiff/apply_binary.go:197–206  ·  view source on GitHub ↗
(r io.ReaderAt, size int64)

Source from the content-addressed store, hash-verified

195}
196
197func checkBinarySrcSize(r io.ReaderAt, size int64) error {
198 ok, err := isLen(r, size)
199 if err != nil {
200 return err
201 }
202 if !ok {
203 return &Conflict{"fragment src size does not match actual src size"}
204 }
205 return nil
206}

Callers 1

applyBinaryDeltaFragmentFunction · 0.85

Calls 1

isLenFunction · 0.85

Tested by

no test coverage detected