- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 2,845 for pointerT (0.7 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go
return } filledTypes[t] = true defer delete(filledTypes, t) // if nil, populate pointers with a zero-value instance of the underlying type if t.Kind() == reflect.Pointer && v.IsNil() { if v.CanSet() { v.Set(reflect.New(t.Elem())) } else if v.IsNil() { panic(fmt.Errorf("unsettable nil pointer of type %v in field %s", t, dataString)) } } if f, ok := fillFuncs[t]; ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 19:12:59 UTC 2023 - 6.5K bytes - Viewed (0) -
test/fixedbugs/issue15329.go
// Previously, cmd/compile would rewrite // // check(unsafe.Pointer(testMeth(1).Pointer()), unsafe.Pointer(testMeth(2).Pointer())) // // to // // var autotmp_1 uintptr = testMeth(1).Pointer() // var autotmp_2 uintptr = testMeth(2).Pointer() // check(unsafe.Pointer(autotmp_1), unsafe.Pointer(autotmp_2)) // // However, that means autotmp_1 is the only reference to the int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 18 14:01:22 UTC 2016 - 2.1K bytes - Viewed (0) -
src/runtime/traceregion.go
full *traceRegionAllocBlock } // traceRegionAllocBlock is a block in traceRegionAlloc. // // traceRegionAllocBlock is allocated from non-GC'd memory, so it must not // contain heap pointers. Writes to pointers to traceRegionAllocBlocks do // not need write barriers. type traceRegionAllocBlock struct { _ sys.NotInHeap traceRegionAllocBlockHeader data [traceRegionAllocBlockData]byte }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 3.2K bytes - Viewed (0) -
src/reflect/type.go
//go:noescape func resolveNameOff(ptrInModule unsafe.Pointer, off int32) unsafe.Pointer // resolveTypeOff resolves an *rtype offset from a base type. // The (*rtype).typeOff method is a convenience wrapper for this function. // Implemented in the runtime package. // //go:noescape func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer // resolveTextOff resolves a function pointer offset from a base type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/doc.go
// conversions of uintptr to unsafe.Pointer. // // # Analyzer unsafeptr // // unsafeptr: check for invalid conversions of uintptr to unsafe.Pointer // // The unsafeptr analyzer reports likely incorrect uses of unsafe.Pointer // to convert integers to pointers. A conversion from uintptr to // unsafe.Pointer is invalid if it implies that there is a uintptr-typed // word in memory that holds a pointer value, because that word will be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 738 bytes - Viewed (0) -
test/method2.go
// Verify that pointers and interface types cannot be method receivers. // Does not compile. package main type T struct { a int } type P *T type P1 *T func (p P) val() int { return 1 } // ERROR "receiver.* pointer|invalid pointer or interface receiver|invalid receiver" func (p *P1) val() int { return 1 } // ERROR "receiver.* pointer|invalid pointer or interface receiver|invalid receiver"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 10 22:48:40 UTC 2022 - 1.2K bytes - Viewed (0) -
src/encoding/json/decode.go
// Unmarshal parses the JSON-encoded data and stores the result // in the value pointed to by v. If v is nil or not a pointer, // Unmarshal returns an [InvalidUnmarshalError]. // // Unmarshal uses the inverse of the encodings that // [Marshal] uses, allocating maps, slices, and pointers as necessary, // with the following additional rules: // // To unmarshal JSON into a pointer, Unmarshal first handles the case of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 35.3K bytes - Viewed (0) -
src/runtime/mbitmap.go
// between the memmove and the execution of the barriers. // The caller is also responsible for cgo pointer checks if this // may be writing Go pointers into non-Go memory. // // Pointer data is not maintained for allocations containing // no pointers at all; any caller of bulkBarrierPreWrite must first // make sure the underlying allocation contains pointers, usually // by checking typ.PtrBytes. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 60K bytes - Viewed (0) -
src/runtime/internal/sys/nih.go
// 1. `new(T)`, `make([]T)`, `append([]T, ...)` and implicit heap // allocation of T are disallowed. (Though implicit allocations are // disallowed in the runtime anyway.) // // 2. A pointer to a regular type (other than `unsafe.Pointer`) cannot be // converted to a pointer to a not-in-heap type, even if they have the // same underlying type. // // 3. Any type that containing a not-in-heap type is itself considered as not-in-heap. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 18:24:50 UTC 2022 - 1.7K bytes - Viewed (0) -
src/internal/abi/escape.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 21:25:11 UTC 2024 - 884 bytes - Viewed (0)