Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,845 for pointerT (0.13 sec)

  1. src/runtime/map.go

    }
    
    func mapaccess1_fat(t *maptype, h *hmap, key, zero unsafe.Pointer) unsafe.Pointer {
    	e := mapaccess1(t, h, key)
    	if e == unsafe.Pointer(&zeroVal[0]) {
    		return zero
    	}
    	return e
    }
    
    func mapaccess2_fat(t *maptype, h *hmap, key, zero unsafe.Pointer) (unsafe.Pointer, bool) {
    	e := mapaccess1(t, h, key)
    	if e == unsafe.Pointer(&zeroVal[0]) {
    		return zero, false
    	}
    	return e, true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  2. src/runtime/map_faststr.go

    		x.k = add(unsafe.Pointer(x.b), dataOffset)
    		x.e = add(x.k, abi.MapBucketCount*2*goarch.PtrSize)
    
    		if !h.sameSizeGrow() {
    			// Only calculate y pointers if we're growing bigger.
    			// Otherwise GC can see bad pointers.
    			y := &xy[1]
    			y.b = (*bmap)(add(h.buckets, (oldbucket+newbit)*uintptr(t.BucketSize)))
    			y.k = add(unsafe.Pointer(y.b), dataOffset)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typebits/typebits.go

    			base.Fatalf("typebits.Set: invalid alignment, %v", t)
    		}
    		// The first word of an interface is a pointer, but we don't
    		// treat it as such.
    		// 1. If it is a non-empty interface, the pointer points to an itab
    		//    which is always in persistentalloc space.
    		// 2. If it is an empty interface, the pointer points to a _type.
    		//   a. If it is a compile-time-allocated type, it points into
    		//      the read-only data section.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. test/fixedbugs/issue7760.go

    // license that can be found in the LICENSE file.
    
    // Verify that pointers can't be used as constants.
    
    package main
    
    import "unsafe"
    
    type myPointer unsafe.Pointer
    
    const _ = unsafe.Pointer(uintptr(1)) // ERROR "is not (a )?constant|invalid constant type"
    const _ = myPointer(uintptr(1)) // ERROR "is not (a )?constant|invalid constant type"
    
    const _ = (*int)(unsafe.Pointer(uintptr(1))) // ERROR "is not (a )?constant|invalid constant type"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 1017 bytes
    - Viewed (0)
  5. src/runtime/cgo/handle.go

    // license that can be found in the LICENSE file.
    
    package cgo
    
    import (
    	"sync"
    	"sync/atomic"
    )
    
    // Handle provides a way to pass values that contain Go pointers
    // (pointers to memory allocated by Go) between Go and C without
    // breaking the cgo pointer passing rules. A Handle is an integer
    // value that can represent any Go value. A Handle can be passed
    // through C and back to Go, and Go code can use the Handle to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. src/internal/abi/type.go

    func (t *Type) Elem() *Type {
    	switch t.Kind() {
    	case Array:
    		tt := (*ArrayType)(unsafe.Pointer(t))
    		return tt.Elem
    	case Chan:
    		tt := (*ChanType)(unsafe.Pointer(t))
    		return tt.Elem
    	case Map:
    		tt := (*MapType)(unsafe.Pointer(t))
    		return tt.Elem
    	case Pointer:
    		tt := (*PtrType)(unsafe.Pointer(t))
    		return tt.Elem
    	case Slice:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-linked_ptr.h

    // - Like all reference counting schemes, cycles lead to leaks.
    // - Each smart pointer is actually two pointers (8 bytes instead of 4).
    // - Every time a pointer is assigned, the entire list of pointers to that
    //   object is traversed.  This class is therefore NOT SUITABLE when there
    //   will often be more than two or three pointers to a particular object.
    // - References are only tracked as long as linked_ptr<> objects are copied.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  8. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-linked_ptr.h

    // - Like all reference counting schemes, cycles lead to leaks.
    // - Each smart pointer is actually two pointers (8 bytes instead of 4).
    // - Every time a pointer is assigned, the entire list of pointers to that
    //   object is traversed.  This class is therefore NOT SUITABLE when there
    //   will often be more than two or three pointers to a particular object.
    // - References are only tracked as long as linked_ptr<> objects are copied.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. src/reflect/value.go

    	return (*abi.Type)(abi.NoEscape(unsafe.Pointer(v.typ_)))
    }
    
    // pointer returns the underlying pointer represented by v.
    // v.Kind() must be Pointer, Map, Chan, Func, or UnsafePointer
    // if v.Kind() == Pointer, the base type must not be not-in-heap.
    func (v Value) pointer() unsafe.Pointer {
    	if v.typ().Size() != goarch.PtrSize || !v.typ().Pointers() {
    		panic("can't call pointer on a non-pointer Value")
    	}
    	if v.flag&flagIndir != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  10. src/runtime/rt0_linux_ppc64.s

    DEFINE_PPC64X_FUNCDESC(main, _main<>)
    
    TEXT _main<>(SB),NOSPLIT,$-8
    	// In a statically linked binary, the stack contains argc,
    	// argv as argc string pointers followed by a NULL, envv as a
    	// sequence of string pointers followed by a NULL, and auxv.
    	// There is no TLS base pointer.
    	//
    	// TODO(austin): Support ABI v1 dynamic linking entry point
    	XOR	R0, R0 // Note, newer kernels may not always set R0 to 0.
    	MOVD	$runtime·rt0_go(SB), R12
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 22:20:51 UTC 2023
    - 847 bytes
    - Viewed (0)
Back to top