Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 270 for ptr (0.16 sec)

  1. src/cmd/compile/internal/ssa/decompose.go

    	ptrType := types.BytePtr
    	lenType := types.Int
    
    	ptr := v.Block.NewValue0(v.Pos, OpPhi, ptrType)
    	len := v.Block.NewValue0(v.Pos, OpPhi, lenType)
    	for _, a := range v.Args {
    		ptr.AddArg(a.Block.NewValue1(v.Pos, OpStringPtr, ptrType, a))
    		len.AddArg(a.Block.NewValue1(v.Pos, OpStringLen, lenType, a))
    	}
    	v.reset(OpStringMake)
    	v.AddArg(ptr)
    	v.AddArg(len)
    }
    
    func decomposeSlicePhi(v *Value) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  2. src/internal/trace/internal/oldtrace/parser.go

    	return l.n - l.off
    }
    
    func (l *Events) Less(i, j int) bool {
    	return l.Ptr(i).Ts < l.Ptr(j).Ts
    }
    
    func (l *Events) Swap(i, j int) {
    	*l.Ptr(i), *l.Ptr(j) = *l.Ptr(j), *l.Ptr(i)
    }
    
    func (l *Events) Pop() (*Event, bool) {
    	if l.off == l.n {
    		return nil, false
    	}
    	a, b := l.index(l.off)
    	ptr := &l.buckets[a][b]
    	l.off++
    	if b == eventsBucketSize-1 || l.off == l.n {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/expr.go

    	}
    
    	if !t.IsSlice() {
    		base.Fatalf("invalid type %v for OSLICEHEADER", n.Type())
    	}
    
    	if n.Ptr == nil || n.Ptr.Type() == nil || !n.Ptr.Type().IsUnsafePtr() {
    		base.Fatalf("need unsafe.Pointer for OSLICEHEADER")
    	}
    
    	n.Ptr = Expr(n.Ptr)
    	n.Len = DefaultLit(Expr(n.Len), types.Types[types.TINT])
    	n.Cap = DefaultLit(Expr(n.Cap), types.Types[types.TINT])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/inl_test.go

    			"tophash",
    			"(*bmap).keys",
    			"(*bmap).overflow",
    			"(*waitq).enqueue",
    			"funcInfo.entry",
    
    			// GC-related ones
    			"cgoInRange",
    			"gclinkptr.ptr",
    			"guintptr.ptr",
    			"heapBitsSlice",
    			"markBits.isMarked",
    			"muintptr.ptr",
    			"puintptr.ptr",
    			"spanOf",
    			"spanOfUnchecked",
    			"typePointers.nextFast",
    			"(*gcWork).putFast",
    			"(*gcWork).tryGetFast",
    			"(*guintptr).set",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. src/encoding/json/encode.go

    		// and its length.
    		ptr := struct {
    			ptr interface{} // always an unsafe.Pointer, but avoids a dependency on package unsafe
    			len int
    		}{v.UnsafePointer(), v.Len()}
    		if _, ok := e.ptrSeen[ptr]; ok {
    			e.error(&UnsupportedValueError{v, fmt.Sprintf("encountered a cycle via %s", v.Type())})
    		}
    		e.ptrSeen[ptr] = struct{}{}
    		defer delete(e.ptrSeen, ptr)
    	}
    	se.arrayEnc(e, v, opts)
    	e.ptrLevel--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  6. src/database/sql/convert_test.go

    }
    
    func uintValue(intptr any) uint64 {
    	return reflect.Indirect(reflect.ValueOf(intptr)).Uint()
    }
    
    func float64Value(ptr any) float64 {
    	return *(ptr.(*float64))
    }
    
    func float32Value(ptr any) float32 {
    	return *(ptr.(*float32))
    }
    
    func timeValue(ptr any) time.Time {
    	return *(ptr.(*time.Time))
    }
    
    func TestConversions(t *testing.T) {
    	for n, ct := range conversionTests() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/facts/facts.go

    }
    
    // ImportObjectFact implements analysis.Pass.ImportObjectFact.
    func (s *Set) ImportObjectFact(obj types.Object, ptr analysis.Fact) bool {
    	if obj == nil {
    		panic("nil object")
    	}
    	key := key{pkg: obj.Pkg(), obj: obj, t: reflect.TypeOf(ptr)}
    	s.mu.Lock()
    	defer s.mu.Unlock()
    	if v, ok := s.m[key]; ok {
    		reflect.ValueOf(ptr).Elem().Set(reflect.ValueOf(v).Elem())
    		return true
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. pkg/registry/batch/job/strategy.go

    		isFailedIndexesChanged := !ptr.Equal(oldJob.Status.FailedIndexes, newJob.Status.FailedIndexes)
    		isActiveChanged := oldJob.Status.Active != newJob.Status.Active
    		isStartTimeChanged := !ptr.Equal(oldJob.Status.StartTime, newJob.Status.StartTime)
    		isCompletionTimeChanged := !ptr.Equal(oldJob.Status.CompletionTime, newJob.Status.CompletionTime)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 16:43:24 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    }
    
    func isTestParam(typ ast.Expr, wantType string) bool {
    	ptr, ok := typ.(*ast.StarExpr)
    	if !ok {
    		// Not a pointer.
    		return false
    	}
    	// No easy way of making sure it's a *testing.T or *testing.B:
    	// ensure the name of the type matches.
    	if name, ok := ptr.X.(*ast.Ident); ok {
    		return name.Name == wantType
    	}
    	if sel, ok := ptr.X.(*ast.SelectorExpr); ok {
    		return sel.Sel.Name == wantType
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. pkg/kube/kclient/client.go

    func (n *informerClient[T]) Get(name, namespace string) T {
    	obj, exists, err := n.informer.GetIndexer().GetByKey(keyFunc(name, namespace))
    	if err != nil {
    		return ptr.Empty[T]()
    	}
    	if !exists {
    		return ptr.Empty[T]()
    	}
    	cast := obj.(T)
    	if !n.applyFilter(cast) {
    		return ptr.Empty[T]()
    	}
    	return cast
    }
    
    func (n *informerClient[T]) applyFilter(t T) bool {
    	if n.filter == nil {
    		return true
    	}
    	return n.filter(t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top