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

Method Write

pkg/gitdiff/format.go:20–28  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

18}
19
20func (fm *formatter) Write(p []byte) (int, error) {
21 if fm.err != nil {
22 return len(p), nil
23 }
24 if _, err := fm.w.Write(p); err != nil {
25 fm.err = err
26 }
27 return len(p), nil
28}
29
30func (fm *formatter) WriteString(s string) (int, error) {
31 fm.Write([]byte(s))

Callers 15

WriteStringMethod · 0.95
WriteByteMethod · 0.95
WriteQuotedNameMethod · 0.95
FormatBinaryFragmentMethod · 0.95
generateBlobsFunction · 0.80
ApplyFragmentMethod · 0.80
copyFromFunction · 0.80
copyLinesFromFunction · 0.80
deflateBinaryChunkFunction · 0.80
ParseBinaryChunkMethod · 0.80
ApplyFragmentMethod · 0.80
applyBinaryDeltaAddFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected