uvarint returns the varint value at the given offset in the index data.
(off uint32)
| 131 | |
| 132 | // uvarint returns the varint value at the given offset in the index data. |
| 133 | func (ix *Index) uvarint(off uint32) uint32 { |
| 134 | v, n := binary.Uvarint(ix.slice(off, -1)) |
| 135 | if n <= 0 { |
| 136 | corrupt() |
| 137 | } |
| 138 | return uint32(v) |
| 139 | } |
| 140 | |
| 141 | // Paths returns the list of indexed paths. |
| 142 | func (ix *Index) Paths() []string { |