(idx uint32)
| 109 | } |
| 110 | |
| 111 | func (d *astDecoder) getString(idx uint32) string { |
| 112 | offBase := int(d.strTable) + int(idx)*4 |
| 113 | start := readLE32(d.raw, offBase) |
| 114 | end := readLE32(d.raw, offBase+4) |
| 115 | return d.allStringData[start:end] |
| 116 | } |
| 117 | |
| 118 | // collectChildren returns indices of direct children of node i. |
| 119 | // The returned slice is reused across calls; callers must not retain it. |
no test coverage detected