(hashes []plumbing.Hash)
| 149 | } |
| 150 | |
| 151 | func (e *Encoder) encodeOidLookup(hashes []plumbing.Hash) (err error) { |
| 152 | for _, hash := range hashes { |
| 153 | if _, err = e.Write(hash[:]); err != nil { |
| 154 | return err |
| 155 | } |
| 156 | } |
| 157 | return |
| 158 | } |
| 159 | |
| 160 | func (e *Encoder) encodeCommitData(hashes []plumbing.Hash, hashToIndex map[plumbing.Hash]uint32, idx Index) (extraEdges []uint32, generationV2Data []uint64, err error) { |
| 161 | if idx.HasGenerationV2() { |