- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 270 for ptr (0.03 sec)
-
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
} } return h.hashPtr(t.Obj()) } // hashPtr hashes the pointer identity of ptr. It uses h.ptrMap to ensure that // pointers values are not dependent on the GC. func (h Hasher) hashPtr(ptr any) uint32 { if hash, ok := h.ptrMap[ptr]; ok { return hash } hash := uint32(reflect.ValueOf(ptr).Pointer()) h.ptrMap[ptr] = hash return hash } // shallowHash computes a hash of t without looking at any of its
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
src/reflect/abi.go
// a pointer bit to the reflect.(Value).Call stack frame's // GC bitmap. ok = a.assignIntN(0, goarch.PtrSize, 1, 0b0) ptr = false } if !ok { a.stackAssign(goarch.PtrSize, goarch.PtrSize) return &a.steps[len(a.steps)-1], ptr } return nil, ptr } // regAssign attempts to reserve argument registers for a value of // type t, stored at some offset. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:08:32 UTC 2024 - 15K bytes - Viewed (0) -
src/runtime/traceruntime.go
pp := gp.m.p w := tl.eventWriter(traceGoRunnable, traceProcRunning) w = w.write(traceEvGoStart, traceArg(gp.goid), gp.trace.nextSeq(tl.gen)) if pp.ptr().gcMarkWorkerMode != gcMarkWorkerNotWorker { w = w.write(traceEvGoLabel, trace.markWorkerLabels[tl.gen%2][pp.ptr().gcMarkWorkerMode]) } w.end() } // GoEnd emits a GoDestroy event. // // TODO(mknyszek): Rename this to GoDestroy.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 25.7K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/validation/validation.go
// Dealing with receiver pointer and receiver value ptr := e k := e.Kind() if k == reflect.Ptr || k == reflect.Interface { e = e.Elem() } if !e.IsValid() { return nil } // check for method on value method := e.MethodByName(validationMethodName) if !method.IsValid() { method = ptr.MethodByName(validationMethodName) } var validationErrors util.Errors
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 20:02:28 UTC 2024 - 14.9K bytes - Viewed (0) -
pkg/proxy/iptables/number_generated_rules_test.go
Namespace: "namespace", }, AddressType: discovery.AddressTypeIPv4, Endpoints: []discovery.Endpoint{}, Ports: []discovery.EndpointPort{{ Name: ptr.To(fmt.Sprintf("%d", epPort)), Port: ptr.To(int32(epPort)), Protocol: ptr.To(v1.ProtocolTCP), }}, } for j := 0; j < nEndpoints; j++ { ipEp := netutils.AddIPOffset(baseEp, j) eps.Endpoints = append(eps.Endpoints, discovery.Endpoint{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 13.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/convert.go
// slicerunetostring(*[32]byte, []rune) string return mkcall("slicerunetostring", n.Type(), init, a, n.X) } // slicebytetostring(*[32]byte, ptr *byte, n int) string n.X = cheapExpr(n.X, init) ptr, len := backingArrayPtrLen(n.X) return mkcall("slicebytetostring", n.Type(), init, a, ptr, len) } // walkBytesToStringTemp walks an OBYTES2STRTMP node. func walkBytesToStringTemp(n *ir.ConvExpr, init *ir.Nodes) ir.Node {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 17:28:22 UTC 2023 - 18.2K bytes - Viewed (0) -
pkg/kube/krt/collection.go
res := hf(ctx, i) if res == nil { return nil } return []O{*res} } o := buildCollectionOptions(opts...) if o.name == "" { o.name = fmt.Sprintf("Collection[%v,%v]", ptr.TypeName[I](), ptr.TypeName[O]()) } return newManyCollection[I, O](c, hm, o) } // NewManyCollection transforms a Collection[I] to a Collection[O] by applying the provided transformation function.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device_context.cc
// differs from the host. return XlaTensor::ToOpaquePointer(new XlaTensor()); } void XlaDeviceAllocator::DeallocateRaw(void* ptr) { delete XlaTensor::FromOpaquePointer(ptr); } std::optional<AllocatorStats> XlaDeviceAllocator::GetStats() { std::optional<stream_executor::AllocatorStats> se_stats = stream_executor_->GetAllocatorStats(); if (!se_stats) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc
Type getElementType() { return mlir::cast<ShapedType>(value_.getType()).getElementType(); } // For LLVM style RTTI. static bool classof(const AbstractTensorHandle* ptr) { return ptr->getKind() == kMlir; } // Return default (TFT_UNSET) full type information. This could be updated in // the future if full type information is needed.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.2K bytes - Viewed (0) -
callbacks/preload.go
if rv.Len() > 0 { reflectValue := rel.FieldSchema.MakeSlice().Elem() for i := 0; i < rv.Len(); i++ { frv := rel.Field.ReflectValueOf(db.Statement.Context, rv.Index(i)) if frv.Kind() != reflect.Ptr { reflectValue = reflect.Append(reflectValue, frv.Addr()) } else { if frv.IsNil() { continue } reflectValue = reflect.Append(reflectValue, frv) }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:52:33 UTC 2024 - 11.6K bytes - Viewed (0)