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)
| 303 | // bitstream, so bitstream decoders must know from context which |
| 304 | // section an encoded relocation refers to. |
| 305 | func (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. |
| 311 | func (w *Encoder) Code(c Code) { |