Paths returns the list of indexed paths.
()
| 140 | |
| 141 | // Paths returns the list of indexed paths. |
| 142 | func (ix *Index) Paths() []string { |
| 143 | off := ix.pathData |
| 144 | var x []string |
| 145 | for { |
| 146 | s := ix.str(off) |
| 147 | if len(s) == 0 { |
| 148 | break |
| 149 | } |
| 150 | x = append(x, string(s)) |
| 151 | off += uint32(len(s) + 1) |
| 152 | } |
| 153 | return x |
| 154 | } |
| 155 | |
| 156 | // NameBytes returns the name corresponding to the given fileid. |
| 157 | func (ix *Index) NameBytes(fileid uint32) []byte { |