Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,845 for pointerT (3.41 sec)

  1. staging/src/k8s.io/apimachinery/pkg/conversion/converter.go

    	typeFrom := reflect.TypeOf(from)
    	typeTo := reflect.TypeOf(to)
    	if typeFrom.Kind() != reflect.Pointer {
    		return fmt.Errorf("expected pointer arg for 'from' param 0, got: %v", typeFrom)
    	}
    	if typeTo.Kind() != reflect.Pointer {
    		return fmt.Errorf("expected pointer arg for 'to' param 1, got: %v", typeTo)
    	}
    	c.ignoredUntypedConversions[typePair{typeFrom, typeTo}] = struct{}{}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  2. src/runtime/rt0_linux_mipsx.s

    	JMP	_main<>(SB)
    
    TEXT _main<>(SB),NOSPLIT|NOFRAME,$0
    	// 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.
    	MOVW	0(R29), R4 // argc
    	ADD	$4, R29, R5 // argv
    	JMP	main(SB)
    
    TEXT main(SB),NOSPLIT|NOFRAME,$0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 797 bytes
    - Viewed (0)
  3. test/fixedbugs/issue19743.go

    // Escape analysis needs to treat the uintptr-typed reflect.*Header fields as pointers.
    
    import (
    	"reflect"
    	"unsafe"
    )
    
    type immutableBytes []byte
    
    // Bug was failure to leak param b.
    func toString(b immutableBytes) string { // ERROR "leaking param: b$"
    	var s string
    	if len(b) == 0 {
    		return s
    	}
    
    	strHeader := (*reflect.StringHeader)(unsafe.Pointer(&s))
    	strHeader.Data = (*reflect.SliceHeader)(unsafe.Pointer(&b)).Data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:34:03 UTC 2019
    - 669 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testerrors/ptr_test.go

    		name:    "sliceok1",
    		c:       `void f6(void **p) {}`,
    		imports: []string{"unsafe"},
    		body:    `s := []unsafe.Pointer{nil}; C.f6(&s[0])`,
    		fail:    false,
    	},
    	{
    		// Passing the address of a slice with a Go pointer.
    		name:    "sliceptr1",
    		c:       `void f7(void **p) {}`,
    		imports: []string{"unsafe"},
    		body:    `i := 0; s := []unsafe.Pointer{unsafe.Pointer(&i)}; C.f7(&s[0])`,
    		fail:    true,
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  5. src/runtime/mfinal.go

    		goto okarg
    	case fint.Kind_&abi.KindMask == abi.Pointer:
    		if (fint.Uncommon() == nil || etyp.Uncommon() == nil) && (*ptrtype)(unsafe.Pointer(fint)).Elem == ot.Elem {
    			// ok - not same type, but both pointers,
    			// one or the other is unnamed, and same element type, so assignable.
    			goto okarg
    		}
    	case fint.Kind_&abi.KindMask == abi.Interface:
    		ityp := (*interfacetype)(unsafe.Pointer(fint))
    		if len(ityp.Methods) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/printers/name.go

    	switch castObj := obj.(type) {
    	case *metav1.WatchEvent:
    		obj = castObj.Object.Object
    	}
    
    	// we use reflect.Indirect here in order to obtain the actual value from a pointer.
    	// using reflect.Indirect indiscriminately is valid here, as all runtime.Objects are supposed to be pointers.
    	// we need an actual value in order to retrieve the package path for an object.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 28 23:24:54 UTC 2019
    - 3.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java

       */
    
      /**
       * Contains the link pointers corresponding with the entries, in the range of [0, size()). The
       * high 32 bits of each long is the "prev" pointer, whereas the low 32 bits is the "succ" pointer
       * (pointing to the nextEntry entry in the linked list). The pointers in [size(), entries.length)
       * are all "null" (UNSET).
       *
       * <p>A node with "prev" pointer equal to {@code ENDPOINT} is the first node in the linked list,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 5.9K bytes
    - Viewed (0)
  8. src/runtime/rt0_linux_s390x.s

    #include "textflag.h"
    
    TEXT _rt0_s390x_linux(SB), NOSPLIT|NOFRAME, $0
    	// 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.
    
    	MOVD 0(R15), R2  // argc
    	ADD  $8, R15, R3 // argv
    	BR   main(SB)
    
    TEXT _rt0_s390x_linux_lib(SB), NOSPLIT, $0
    	MOVD $_rt0_s390x_lib(SB), R1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 15:54:54 UTC 2017
    - 676 bytes
    - Viewed (0)
  9. tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.h

      //  create_resource - Non owning pointer to the create_resource function
      //                    associated with this object. Must be NON-NULL.
      //  initialize - Non owning pointer to the initialize function associated with
      //               this object. Must be NON-NULL.
      //  destroy_resource - Non owning pointer to the destroy_resource function
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 23 04:49:47 UTC 2020
    - 4.6K bytes
    - Viewed (0)
  10. src/runtime/rt0_openbsd_mips64.s

    	JMP	_main<>(SB)
    
    TEXT _main<>(SB),NOSPLIT|NOFRAME,$0
    	// 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.
    #ifdef GOARCH_mips64
    	MOVW	4(R29), R4 // argc, big-endian ABI places int32 at offset 4
    #else
    	MOVW	0(R29), R4 // argc
    #endif
    	ADDV	$8, R29, R5 // argv
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 29 08:07:46 UTC 2020
    - 976 bytes
    - Viewed (0)
Back to top