MCPcopy
hub / github.com/git-lfs/git-lfs / NewBodyWithCallback

Function NewBodyWithCallback

tools/copycallback.go:26–32  ·  view source on GitHub ↗
(body ReadSeekCloser, totalSize int64, cb CopyCallback)

Source from the content-addressed store, hash-verified

24}
25
26func NewBodyWithCallback(body ReadSeekCloser, totalSize int64, cb CopyCallback) *BodyWithCallback {
27 return &BodyWithCallback{
28 c: cb,
29 totalSize: totalSize,
30 ReadSeekCloser: body,
31 }
32}
33
34// Read wraps the underlying Reader's "Read" method. It also captures the number
35// of bytes read, and calls the callback.

Callers 5

performUploadFunction · 0.92
makeRequestMethod · 0.92
DoTransferMethod · 0.92
NewByteBodyWithCallbackFunction · 0.85
NewFileBodyWithCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected