Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,205 for pointerT (0.18 sec)

  1. src/internal/weak/pointer.go

    // will not compare equal.
    // If a weak pointer is created from an object that becomes reachable again due
    // to a finalizer, that weak pointer will not compare equal with weak pointers
    // created before it became unreachable.
    type Pointer[T any] struct {
    	u unsafe.Pointer
    }
    
    // Make creates a weak pointer from a strong pointer to some value of type T.
    func Make[T any](ptr *T) Pointer[T] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:13:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/go/types/pointer.go

    // Elem returns the element type for the given pointer p.
    func (p *Pointer) Elem() Type { return p.base }
    
    func (p *Pointer) Underlying() Type { return p }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 761 bytes
    - Viewed (0)
  3. pkg/ptr/pointer.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package ptr
    
    import (
    	"fmt"
    )
    
    // Of returns a pointer to the input. In most cases, callers should just do &t. However, in some cases
    // Go cannot take a pointer. For example, `ptr.Of(f())`.
    func Of[T any](t T) *T {
    	return &t
    }
    
    // OrEmpty returns *t if its non-nil, or else an empty T
    func OrEmpty[T any](t *T) T {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 07 14:56:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-printers.h

      }
    
      if (count > 0) {
        *os << ' ';
      }
      *os << '}';
    }
    
    // Used to print a pointer that is neither a char pointer nor a member
    // pointer, when the user doesn't define PrintTo() for it.  (A member
    // variable pointer or member function pointer doesn't really point to
    // a location in the address space.  Their representation is
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  5. pkg/printers/internalversion/printers.go

    func printPodList(podList *api.PodList, options printers.GenerateOptions) ([]metav1.TableRow, error) {
    	rows := make([]metav1.TableRow, 0, len(podList.Items))
    	for i := range podList.Items {
    		r, err := printPod(&podList.Items[i], options)
    		if err != nil {
    			return nil, err
    		}
    		rows = append(rows, r...)
    	}
    	return rows, nil
    }
    
    func printPod(pod *api.Pod, options printers.GenerateOptions) ([]metav1.TableRow, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  6. src/runtime/checkptr.go

    	return checkptrBase(ptr) != checkptrBase(end)
    }
    
    func checkptrArithmetic(p unsafe.Pointer, originals []unsafe.Pointer) {
    	if 0 < uintptr(p) && uintptr(p) < minLegalPointer {
    		throw("checkptr: pointer arithmetic computed bad pointer value")
    	}
    
    	// Check that if the computed pointer p points into a heap
    	// object, then one of the original pointers must have pointed
    	// into the same object.
    	base := checkptrBase(p)
    	if base == 0 {
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/symbols/AbstractSymbolTest.kt

        private fun assertSymbolPointer(pointer: KaSymbolPointer<*>, testServices: TestServices) {
            testServices.assertions.assertTrue(value = pointer.pointsToTheSameSymbolAs(pointer)) {
                "The symbol is not equal to itself: ${pointer::class}"
            }
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  8. src/runtime/mwbbuf.go

    		return
    	}
    
    	// Mark all of the pointers in the buffer and record only the
    	// pointers we greyed. We use the buffer itself to temporarily
    	// record greyed pointers.
    	//
    	// TODO: Should scanobject/scanblock just stuff pointers into
    	// the wbBuf? Then this would become the sole greying path.
    	//
    	// TODO: We could avoid shading any of the "new" pointers in
    	// the buffer if the stack has been shaded, or even avoid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. src/runtime/map_fast32.go

    			}
    			// Only clear key if there are pointers in it.
    			// This can only happen if pointers are 32 bit
    			// wide as 64 bit pointers do not fit into a 32 bit key.
    			if goarch.PtrSize == 4 && t.Key.Pointers() {
    				// The key must be a pointer as we checked pointers are
    				// 32 bits wide and the key is 32 bits wide also.
    				*(*unsafe.Pointer)(k) = nil
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. src/runtime/mbarrier.go

    // pointer (because it doesn't know it's not a heap pointer).
    //
    //
    // Global writes:
    //
    // The Go garbage collector requires write barriers when heap pointers
    // are stored in globals. Many garbage collectors ignore writes to
    // globals and instead pick up global -> heap pointers during
    // termination. This increases pause time, so we instead rely on write
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top