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

Method Reloc

internal/pkgbits/encoder.go:305–308  ·  view source on GitHub ↗

Reloc encodes and writes a relocation for the given (section, index) pair into the element bitstream. Note: Only the index is formally written into the element bitstream, so bitstream decoders must know from context which section an encoded relocation refers to.

(r RelocKind, idx Index)

Source from the content-addressed store, hash-verified

303// bitstream, so bitstream decoders must know from context which
304// section an encoded relocation refers to.
305func (w *Encoder) Reloc(r RelocKind, idx Index) {
306 w.Sync(SyncUseReloc)
307 w.Len(w.rawReloc(r, idx))
308}
309
310// Code encodes and writes a Code value into the element bitstream.
311func (w *Encoder) Code(c Code) {

Callers 1

StringRefMethod · 0.95

Calls 3

SyncMethod · 0.95
LenMethod · 0.95
rawRelocMethod · 0.95

Tested by

no test coverage detected