Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for writeAttr (0.25 sec)

  1. src/cmd/compile/internal/ssa/debug.go

    		b := make([]byte, len(buf), 20+cap(buf)*2)
    		copy(b, buf)
    		buf = b
    	}
    	writeAt := len(buf)
    	buf = buf[0 : len(buf)+ctxt.Arch.PtrSize]
    	writePtr(ctxt, buf[writeAt:], word)
    	return buf
    }
    
    // Write a pointer-sized uint to the beginning of buf.
    func writePtr(ctxt *obj.Link, buf []byte, word uint64) {
    	switch ctxt.Arch.PtrSize {
    	case 4:
    		ctxt.Arch.ByteOrder.PutUint32(buf, uint32(word))
    	case 8:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
Back to top