(off uint32)
| 160 | } |
| 161 | |
| 162 | func (ix *Index) str(off uint32) []byte { |
| 163 | str := ix.slice(off, -1) |
| 164 | i := bytes.IndexByte(str, '\x00') |
| 165 | if i < 0 { |
| 166 | corrupt() |
| 167 | } |
| 168 | return str[:i] |
| 169 | } |
| 170 | |
| 171 | // Name returns the name corresponding to the given fileid. |
| 172 | func (ix *Index) Name(fileid uint32) string { |