Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for PtrType (0.27 sec)

  1. 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)
  2. src/internal/reflectlite/value.go

    	case abi.Pointer:
    		ptr := v.ptr
    		if v.flag&flagIndir != 0 {
    			ptr = *(*unsafe.Pointer)(ptr)
    		}
    		// The returned value's address is v's value.
    		if ptr == nil {
    			return Value{}
    		}
    		tt := (*ptrType)(unsafe.Pointer(v.typ()))
    		typ := tt.Elem
    		fl := v.flag&flagRO | flagIndir | flagAddr
    		fl |= flag(typ.Kind())
    		return Value{typ, ptr, fl}
    	}
    	panic(&ValueError{"reflectlite.Value.Elem", v.kind()})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. src/go/printer/testdata/declarations.golden

    	}
    	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.2K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/deadcode.go

    	}
    	off := commonsize(arch) // reflect.rtype
    	switch decodetypeKind(arch, p) {
    	case abi.Struct: // reflect.structType
    		off += 4 * arch.PtrSize
    	case abi.Pointer: // reflect.ptrType
    		off += arch.PtrSize
    	case abi.Func: // reflect.funcType
    		off += arch.PtrSize // 4 bytes, pointer aligned
    	case abi.Slice: // reflect.sliceType
    		off += arch.PtrSize
    	case abi.Array: // reflect.arrayType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. src/runtime/cgocall.go

    		aep := efaceOf(&arg)
    		switch aep._type.Kind_ & abi.KindMask {
    		case abi.Bool:
    			if t.Kind_&abi.KindMask == abi.UnsafePointer {
    				// We don't know the type of the element.
    				break
    			}
    			pt := (*ptrtype)(unsafe.Pointer(t))
    			cgoCheckArg(pt.Elem, p, true, false, cgoCheckPointerFail)
    			return
    		case abi.Slice:
    			// Check the slice rather than the pointer.
    			ep = aep
    			t = ep._type
    		case abi.Array:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. src/cmd/internal/dwarf/dwarf.go

    			{DW_AT_type, DW_FORM_ref_addr},
    			{DW_AT_go_kind, DW_FORM_data1},
    			{DW_AT_go_runtime_type, DW_FORM_addr},
    			{DW_AT_go_key, DW_FORM_ref_addr},
    			{DW_AT_go_elem, DW_FORM_ref_addr},
    		},
    	},
    
    	/* PTRTYPE */
    	{
    		DW_TAG_pointer_type,
    		DW_CHILDREN_no,
    		[]dwAttrForm{
    			{DW_AT_name, DW_FORM_string},
    			{DW_AT_type, DW_FORM_ref_addr},
    			{DW_AT_go_kind, DW_FORM_data1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 43K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/dwarf_test.go

    		"internal/abi.Type":          true,
    		"internal/abi.ArrayType":     true,
    		"internal/abi.ChanType":      true,
    		"internal/abi.FuncType":      true,
    		"internal/abi.MapType":       true,
    		"internal/abi.PtrType":       true,
    		"internal/abi.SliceType":     true,
    		"internal/abi.StructType":    true,
    		"internal/abi.InterfaceType": true,
    		"internal/abi.ITab":          true,
    	}
    
    	found := findTypes(t, dwarf, want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  8. src/runtime/export_test.go

    }
    
    func (a *UserArena) New(out *any) {
    	i := efaceOf(out)
    	typ := i._type
    	if typ.Kind_&abi.KindMask != abi.Pointer {
    		panic("new result of non-ptr type")
    	}
    	typ = (*ptrtype)(unsafe.Pointer(typ)).Elem
    	i.data = a.arena.new(typ)
    }
    
    func (a *UserArena) Slice(sl any, cap int) {
    	a.arena.slice(sl, cap)
    }
    
    func (a *UserArena) Free() {
    	a.arena.free()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top