MCPcopy
hub / github.com/go-git/go-git / encodeFanout

Method encodeFanout

plumbing/format/commitgraph/encoder.go:128–135  ·  view source on GitHub ↗
(fanout []uint32)

Source from the content-addressed store, hash-verified

126}
127
128func (e *Encoder) encodeFanout(fanout []uint32) (err error) {
129 for i := 0; i <= 0xff; i++ {
130 if err = binary.WriteUint32(e, fanout[i]); err != nil {
131 return
132 }
133 }
134 return
135}
136
137func (e *Encoder) encodeOidLookup(hashes []plumbing.Hash) (err error) {
138 for _, hash := range hashes {

Callers 1

EncodeMethod · 0.95

Calls 1

WriteUint32Function · 0.92

Tested by

no test coverage detected