MCPcopy
hub / github.com/golang/tools / StringRef

Method StringRef

internal/pkgbits/encoder.go:328–331  ·  view source on GitHub ↗

StringRef writes a reference to the given index, which must be a previously encoded string value.

(idx Index)

Source from the content-addressed store, hash-verified

326// StringRef writes a reference to the given index, which must be a
327// previously encoded string value.
328func (w *Encoder) StringRef(idx Index) {
329 w.Sync(SyncString)
330 w.Reloc(RelocString, idx)
331}
332
333// Strings encodes and writes a variable-length slice of strings into
334// the element bitstream.

Callers 1

StringMethod · 0.95

Calls 2

SyncMethod · 0.95
RelocMethod · 0.95

Tested by

no test coverage detected