Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RelocMap (0.07 sec)

  1. src/internal/pkgbits/encoder.go

    	}
    
    	w.rawUvarint(ux)
    }
    
    func (w *Encoder) rawReloc(r RelocKind, idx Index) int {
    	e := RelocEnt{r, idx}
    	if w.RelocMap != nil {
    		if i, ok := w.RelocMap[e]; ok {
    			return int(i)
    		}
    	} else {
    		w.RelocMap = make(map[RelocEnt]uint32)
    	}
    
    	i := len(w.Relocs)
    	w.RelocMap[e] = uint32(i)
    	w.Relocs = append(w.Relocs, e)
    	return i
    }
    
    func (w *Encoder) Sync(m SyncMarker) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 10 23:26:58 UTC 2022
    - 9.6K bytes
    - Viewed (0)
Back to top