MCPcopy Create free account
hub / github.com/go-git/go-git / Write

Method Write

plumbing/format/packfile/encoder.go:213–217  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

211}
212
213func (ow *offsetWriter) Write(p []byte) (n int, err error) {
214 n, err = ow.w.Write(p)
215 ow.offset += int64(n)
216 return n, err
217}
218
219func (ow *offsetWriter) Offset() int64 {
220 return ow.offset

Callers 12

diffDeltaFunction · 0.45
encodeInsertOperationFunction · 0.45
getMethod · 0.45
readDataMethod · 0.45
getSHA1Function · 0.45
entryHeadMethod · 0.45
ReadMethod · 0.45
patchDeltaFunction · 0.45
packfileFromReaderFunction · 0.45
testEncodeDecodeMethod · 0.45
FlushMethod · 0.45
encodeLineMethod · 0.45

Calls

no outgoing calls

Tested by 2

packfileFromReaderFunction · 0.36
testEncodeDecodeMethod · 0.36