NameBytes returns the name corresponding to the given fileid.
(fileid uint32)
| 155 | |
| 156 | // NameBytes returns the name corresponding to the given fileid. |
| 157 | func (ix *Index) NameBytes(fileid uint32) []byte { |
| 158 | off := ix.uint32(ix.nameIndex + 4*fileid) |
| 159 | return ix.str(ix.nameData + off) |
| 160 | } |
| 161 | |
| 162 | func (ix *Index) str(off uint32) []byte { |
| 163 | str := ix.slice(off, -1) |