(len uint16)
| 186 | } |
| 187 | |
| 188 | func (d *Decoder) doReadEntryName(len uint16) (string, error) { |
| 189 | name := make([]byte, len) |
| 190 | _, err := io.ReadFull(d.r, name) |
| 191 | |
| 192 | return string(name), err |
| 193 | } |
| 194 | |
| 195 | // Index entries are padded out to the next 8 byte alignment |
| 196 | // for historical reasons related to how C Git read the files. |