MCPcopy
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 15

buildDeltaFunction · 0.45
diffDeltaFunction · 0.45
encodeInsertOperationFunction · 0.45
TestChecksumMismatchFunction · 0.45
FuzzParserFunction · 0.45
getMethod · 0.45
readDataMethod · 0.45
entryHeadMethod · 0.45
patchDeltaFunction · 0.45
buildTestPackFunction · 0.45
buildMinimalPackFunction · 0.45

Calls

no outgoing calls

Tested by 8

buildDeltaFunction · 0.36
TestChecksumMismatchFunction · 0.36
FuzzParserFunction · 0.36
buildTestPackFunction · 0.36
buildMinimalPackFunction · 0.36
packfileFromReaderFunction · 0.36
testEncodeDecodeMethod · 0.36