Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for UnsafePointer (0.21 sec)

  1. src/runtime/debuglog.go

    		return l
    	}
    	l.w.byte(debugLogPtr)
    	if x == nil {
    		l.w.uvarint(0)
    	} else {
    		v := efaceOf(&x)
    		switch v._type.Kind_ & abi.KindMask {
    		case abi.Chan, abi.Func, abi.Map, abi.Pointer, abi.UnsafePointer:
    			l.w.uvarint(uint64(uintptr(v.data)))
    		default:
    			throw("not a pointer type")
    		}
    	}
    	return l
    }
    
    //go:nosplit
    func (l *dlogger) s(x string) *dlogger {
    	if !dlogEnabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/predicates.go

    		}
    		// fallthrough
    	}
    	return false
    }
    
    // hasNil reports whether type t includes the nil value.
    func hasNil(t Type) bool {
    	switch u := under(t).(type) {
    	case *Basic:
    		return u.kind == UnsafePointer
    	case *Slice, *Pointer, *Signature, *Map, *Chan:
    		return true
    	case *Interface:
    		return !isTypeParam(t) || u.typeSet().underIs(func(u Type) bool {
    			return u != nil && hasNil(u)
    		})
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    			arch.sizes = types.SizesFor("gc", "amd64")
    			log.Printf("unknown architecture %s", arch.name)
    		}
    		arch.intSize = int(arch.sizes.Sizeof(types.Typ[types.Int]))
    		arch.ptrSize = int(arch.sizes.Sizeof(types.Typ[types.UnsafePointer]))
    		arch.maxAlign = int(arch.sizes.Alignof(types.Typ[types.Int64]))
    	}
    }
    
    var (
    	re           = regexp.MustCompile
    	asmPlusBuild = re(`//\s+\+build\s+([^\n]+)`)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  4. schema/field.go

    					ef.TagSettings[k] = v
    				}
    			}
    		case reflect.Invalid, reflect.Uintptr, reflect.Array, reflect.Chan, reflect.Func, reflect.Interface,
    			reflect.Map, reflect.Ptr, reflect.Slice, reflect.UnsafePointer, reflect.Complex64, reflect.Complex128:
    			schema.err = fmt.Errorf("invalid embedded struct for %s's field %s, should be struct, but got %v", field.Schema.Name, field.Name, field.FieldType)
    		}
    	}
    
    	return field
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. src/go/internal/gccgoimporter/parser.go

    // PointerType = "*" ("any" | Type) .
    func (p *parser) parsePointerType(pkg *types.Package, nlist []any) types.Type {
    	p.expect('*')
    	if p.tok == scanner.Ident {
    		p.expectKeyword("any")
    		t := types.Typ[types.UnsafePointer]
    		p.update(t, nlist)
    		return t
    	}
    
    	t := new(types.Pointer)
    	p.update(t, nlist)
    
    	*t = *types.NewPointer(p.parseType(pkg, t))
    
    	return t
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top