Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 78 for namebuf (0.55 sec)

  1. src/reflect/type.go

    type interfaceType struct {
    	abi.InterfaceType // can embed directly because not a public type.
    }
    
    func (t *interfaceType) nameOff(off aNameOff) abi.Name {
    	return toRType(&t.Type).nameOff(off)
    }
    
    func nameOffFor(t *abi.Type, off aNameOff) abi.Name {
    	return toRType(t).nameOff(off)
    }
    
    func typeOffFor(t *abi.Type, off aTypeOff) *abi.Type {
    	return toRType(t).typeOff(off)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  2. src/internal/reflectlite/export_test.go

    func FirstMethodNameBytes(t Type) *byte {
    	_ = pinUnexpMethI
    
    	ut := t.uncommon()
    	if ut == nil {
    		panic("type has no methods")
    	}
    	m := ut.Methods()[0]
    	mname := t.(rtype).nameOff(m.Name)
    	if *mname.DataChecked(0, "name flag field")&(1<<2) == 0 {
    		panic("method name does not have pkgPath *string")
    	}
    	return mname.Bytes
    }
    
    type Buffer struct {
    	buf []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. src/runtime/symtab.go

    				break
    			}
    		}
    	}
    	return res, true
    }
    
    // funcName returns the string at nameOff in the function name table.
    func (md *moduledata) funcName(nameOff int32) string {
    	if nameOff == 0 {
    		return ""
    	}
    	return gostringnocopy(&md.funcnametab[nameOff])
    }
    
    // FuncForPC returns a *[Func] describing the function that contains the
    // given program counter address, or else nil.
    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/go/ast/filter.go

    	FilterUnassociatedComments
    	// If set, duplicate import declarations are excluded.
    	FilterImportDuplicates
    )
    
    // nameOf returns the function (foo) or method name (foo.bar) for
    // the given function declaration. If the AST is incorrect for the
    // receiver, it assumes a function instead.
    func nameOf(f *FuncDecl) string {
    	if r := f.Recv; r != nil && len(r.List) == 1 {
    		// looks like a correct receiver declaration
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/debug/dwarf/buf.go

    func (u unknownFormat) version() int {
    	return 0
    }
    
    func (u unknownFormat) dwarf64() (bool, bool) {
    	return false, false
    }
    
    func (u unknownFormat) addrsize() int {
    	return 0
    }
    
    func makeBuf(d *Data, format dataFormat, name string, off Offset, data []byte) buf {
    	return buf{d, d.order, format, name, off, data, nil}
    }
    
    func (b *buf) uint8() uint8 {
    	if len(b.data) < 1 {
    		b.error("underflow")
    		return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 21 17:14:08 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  6. src/runtime/plugin.go

    // A ptabEntry is generated by the compiler for each exported function
    // and global variable in the main package of a plugin. It is used to
    // initialize the plugin module's symbol map.
    type ptabEntry struct {
    	name nameOff
    	typ  typeOff
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/pcln.go

    		}
    		off = sb.SetUint32(ctxt.Arch, off, uint32(entryOff))
    
    		// nameOff int32
    		nameOff, ok := nameOffsets[s]
    		if !ok {
    			panic("couldn't find function name offset")
    		}
    		off = sb.SetUint32(ctxt.Arch, off, uint32(nameOff))
    
    		// args int32
    		// TODO: Move into funcinfo.
    		args := uint32(0)
    		if fi.Valid() {
    			args = uint32(fi.Args())
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  8. src/runtime/iface.go

    		i := &inter.Methods[k]
    		itype := toRType(&inter.Type).typeOff(i.Typ)
    		name := toRType(&inter.Type).nameOff(i.Name)
    		iname := name.Name()
    		ipkg := pkgPath(name)
    		if ipkg == "" {
    			ipkg = inter.PkgPath.Name()
    		}
    		for ; j < nt; j++ {
    			t := &xmhdr[j]
    			rtyp := toRType(typ)
    			tname := rtyp.nameOff(t.Name)
    			if rtyp.typeOff(t.Mtyp) == itype && tname.Name() == iname {
    				pkgPath := pkgPath(tname)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/value.go

    			v.Fatalf("spill/restore type %s doesn't fit in slot type %s", v.Type, loc.Type)
    		}
    		return loc.N, loc.Off
    	}
    	// Assume it is a register, return its spill slot, which needs to be live
    	nameOff := v.Aux.(*AuxNameOffset)
    	return nameOff.Name, nameOff.Offset
    }
    
    // CanSSA reports whether values of type t can be represented as a Value.
    func CanSSA(t *types.Type) bool {
    	types.CalcSize(t)
    	if t.Size() > int64(4*types.PtrSize) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  10. src/cmd/link/internal/loadelf/ldelf.go

    	if err := elfmap(elfobj, sect); err != nil {
    		return errorf("malformed elf file: %v", err)
    	}
    	for i := 0; uint(i) < elfobj.nsect; i++ {
    		if elfobj.sect[i].nameoff != 0 {
    			elfobj.sect[i].name = cstring(sect.base[elfobj.sect[i].nameoff:])
    		}
    	}
    
    	// load string table for symbols into memory.
    	elfobj.symtab = section(elfobj, ".symtab")
    
    	if elfobj.symtab == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:12:12 UTC 2024
    - 33.9K bytes
    - Viewed (0)
Back to top