MCPcopy Index your code
hub / github.com/microsoft/typescript-go / getString

Method getString

internal/api/encoder/decoder.go:111–116  ·  view source on GitHub ↗
(idx uint32)

Source from the content-addressed store, hash-verified

109}
110
111func (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.

Calls 2

readLE32Function · 0.85
intInterface · 0.50

Tested by

no test coverage detected