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

Function NewByteBodyWithCallback

tools/copycallback.go:18–20  ·  view source on GitHub ↗
(by []byte, totalSize int64, cb CopyCallback)

Source from the content-addressed store, hash-verified

16}
17
18func NewByteBodyWithCallback(by []byte, totalSize int64, cb CopyCallback) *BodyWithCallback {
19 return NewBodyWithCallback(NewByteBody(by), totalSize, cb)
20}
21
22func NewFileBodyWithCallback(f *os.File, totalSize int64, cb CopyCallback) *BodyWithCallback {
23 return NewBodyWithCallback(NewFileBody(f), totalSize, cb)

Calls 2

NewBodyWithCallbackFunction · 0.85
NewByteBodyFunction · 0.70