MCPcopy Index your code
hub / github.com/go-git/go-git / encodeFanout

Method encodeFanout

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

Source from the content-addressed store, hash-verified

140}
141
142func (e *Encoder) encodeFanout(fanout []uint32) (err error) {
143 for i := 0; i <= 0xff; i++ {
144 if err = binary.WriteUint32(e, fanout[i]); err != nil {
145 return
146 }
147 }
148 return
149}
150
151func (e *Encoder) encodeOidLookup(hashes []plumbing.Hash) (err error) {
152 for _, hash := range hashes {

Callers 1

EncodeMethod · 0.95

Calls 1

WriteUint32Function · 0.92

Tested by

no test coverage detected