Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 82 for ptrType (0.37 sec)

  1. src/debug/dwarf/type.go

    // A VoidType represents the C void type.
    type VoidType struct {
    	CommonType
    }
    
    func (t *VoidType) String() string { return "void" }
    
    // A PtrType represents a pointer type.
    type PtrType struct {
    	CommonType
    	Type Type
    }
    
    func (t *PtrType) String() string { return "*" + t.Type.String() }
    
    // A StructType represents a struct, union, or C++ class type.
    type StructType struct {
    	CommonType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/func.go

    	return c, d
    }
    
    func (f *Func) SplitSlice(name *LocalSlot) (*LocalSlot, *LocalSlot, *LocalSlot) {
    	ptrType := types.NewPtr(name.Type.Elem())
    	lenType := types.Types[types.TINT]
    	p := f.SplitSlot(name, ".ptr", 0, ptrType)
    	l := f.SplitSlot(name, ".len", ptrType.Size(), lenType)
    	c := f.SplitSlot(name, ".cap", ptrType.Size()+lenType.Size(), lenType)
    	return p, l, c
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. src/internal/reflectlite/type.go

    type arrayType = abi.ArrayType
    
    // chanType represents a channel type.
    type chanType = abi.ChanType
    
    type funcType = abi.FuncType
    
    type interfaceType = abi.InterfaceType
    
    // ptrType represents a pointer type.
    type ptrType = abi.PtrType
    
    // sliceType represents a slice type.
    type sliceType = abi.SliceType
    
    // structType represents a struct type.
    type structType = abi.StructType
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. src/runtime/export_debug_test.go

    	if a._type != nil && a._type.Kind_&abi.KindMask != abi.Pointer {
    		return nil, plainError("args must be a pointer or nil")
    	}
    	argp := a.data
    	var argSize uintptr
    	if argp != nil {
    		argSize = (*ptrtype)(unsafe.Pointer(a._type)).Elem.Size_
    	}
    
    	h := new(debugCallHandler)
    	h.gp = gp
    	// gp may not be running right now, but we can still get the M
    	// it will run on since it's locked.
    	h.mp = gp.lockedm.ptr()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. src/internal/abi/type.go

    	if t.TFlag&TFlagUncommon == 0 {
    		return nil
    	}
    	switch t.Kind() {
    	case Struct:
    		return &(*structTypeUncommon)(unsafe.Pointer(t)).u
    	case Pointer:
    		type u struct {
    			PtrType
    			u UncommonType
    		}
    		return &(*u)(unsafe.Pointer(t)).u
    	case Func:
    		type u struct {
    			FuncType
    			u UncommonType
    		}
    		return &(*u)(unsafe.Pointer(t)).u
    	case Slice:
    		type u struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. src/reflect/type.go

    	if pi, ok := ptrMap.Load(t); ok {
    		return &pi.(*ptrType).Type
    	}
    
    	// Look in known types.
    	s := "*" + t.String()
    	for _, tt := range typesByString(s) {
    		p := (*ptrType)(unsafe.Pointer(tt))
    		if p.Elem != &t.t {
    			continue
    		}
    		pi, _ := ptrMap.LoadOrStore(t, p)
    		return &pi.(*ptrType).Type
    	}
    
    	// Create a new ptrType starting with the description
    	// of an *unsafe.Pointer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  7. src/runtime/heapdump.go

    func dumpotherroot(description string, to unsafe.Pointer) {
    	dumpint(tagOtherRoot)
    	dumpstr(description)
    	dumpint(uint64(uintptr(to)))
    }
    
    func dumpfinalizer(obj unsafe.Pointer, fn *funcval, fint *_type, ot *ptrtype) {
    	dumpint(tagFinalizer)
    	dumpint(uint64(uintptr(obj)))
    	dumpint(uint64(uintptr(unsafe.Pointer(fn))))
    	dumpint(uint64(uintptr(unsafe.Pointer(fn.fn))))
    	dumpint(uint64(uintptr(unsafe.Pointer(fint))))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    		// constants to the parameter type, to avoid a type mismatch.
    		ptype := p.rewriteUnsafe(param.Go)
    
    		if !p.needsPointerCheck(f, param.Go, args[i]) || param.BadPointer || p.checkUnsafeStringData(args[i]) {
    			if ptype != param.Go {
    				needsUnsafe = true
    			}
    			fmt.Fprintf(&sb, "var _cgo%d %s = %s; ", i,
    				gofmt(ptype), gofmtPos(arg, origArg.Pos()))
    			continue
    		}
    
    		// Check for &a[i].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  9. src/runtime/arena.go

    func arena_arena_New(arena unsafe.Pointer, typ any) any {
    	t := (*_type)(efaceOf(&typ).data)
    	if t.Kind_&abi.KindMask != abi.Pointer {
    		throw("arena_New: non-pointer type")
    	}
    	te := (*ptrtype)(unsafe.Pointer(t)).Elem
    	x := ((*userArena)(arena)).new(te)
    	var result any
    	e := efaceOf(&result)
    	e._type = t
    	e.data = x
    	return result
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  10. src/go/printer/testdata/declarations.input

    	}
    	Type struct {
    		Typ, Ptr int
    	}
    	StructField struct {
    		Name, PkgPath, Typ, Tag, Offset int
    	}
    	StructType struct {
    		Fields int
    	}
    	PtrType struct {
    		Elem int
    	}
    	SliceType struct {
    		Elem int
    	}
    	ArrayType struct {
    		Elem, Len int
    	}
    
    	Stktop struct {
    		Stackguard, Stackbase, Gobuf int
    	}
    	Gobuf struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
Back to top