Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for textOff (0.93 sec)

  1. src/runtime/type.go

    // Runtime type representation.
    
    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    type nameOff = abi.NameOff
    type typeOff = abi.TypeOff
    type textOff = abi.TextOff
    
    type _type = abi.Type
    
    // rtype is a wrapper that allows us to define additional methods.
    type rtype struct {
    	*abi.Type // embedding is okay here (unlike reflect) because none of this is public
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. src/runtime/runtime1.go

    // See go.dev/issue/67401.
    //
    //go:linkname reflect_resolveTextOff reflect.resolveTextOff
    func reflect_resolveTextOff(rtype unsafe.Pointer, off int32) unsafe.Pointer {
    	return toRType((*_type)(rtype)).textOff(textOff(off))
    }
    
    // reflectlite_resolveNameOff resolves a name offset from a base pointer.
    //
    //go:linkname reflectlite_resolveNameOff internal/reflectlite.resolveNameOff
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. src/runtime/symtab.go

    			throw("runtime: text offset out of range")
    		}
    	}
    	return res
    }
    
    // textOff is the opposite of textAddr. It converts a PC to a (virtual) offset
    // to md.text, and returns if the PC is in any Go text section.
    //
    // It is nosplit because it is part of the findfunc implementation.
    //
    //go:nosplit
    func (md *moduledata) textOff(pc uintptr) (uint32, bool) {
    	res := uint32(pc - md.text)
    	if len(md.textsectmap) > 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  4. src/runtime/iface.go

    				pkgPath := pkgPath(tname)
    				if pkgPath == "" {
    					pkgPath = rtyp.nameOff(x.PkgPath).Name()
    				}
    				if tname.IsExported() || pkgPath == ipkg {
    					ifn := rtyp.textOff(t.Ifn)
    					if k == 0 {
    						fun0 = ifn // we'll set m.Fun[0] at the end
    					} else if firstTime {
    						methods[k] = ifn
    					}
    					continue imethods
    				}
    			}
    		}
    		// didn't find method
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top