Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for Ap (0.02 sec)

  1. src/cmd/cover/testdata/pkgcfg/a/a.go

    package a
    
    type Atyp int
    
    func (ap *Atyp) Set(q int) {
    	*ap = Atyp(q)
    }
    
    func (ap Atyp) Get() int {
    	inter := func(q Atyp) int {
    		return int(q)
    	}
    	return inter(ap)
    }
    
    var afunc = func(x int) int {
    	return x + 1
    }
    var Avar = afunc(42)
    
    func A(x int) int {
    	if x == 0 {
    		return 22
    	} else if x == 1 {
    		return 33
    	}
    	return 44
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:48:40 UTC 2022
    - 330 bytes
    - Viewed (0)
  2. pkg/config/analysis/analyzers/authz/authorizationpolicies.go

    	ap := r.Message.(*v1beta1.AuthorizationPolicy)
    	apNs := r.Metadata.FullName.Namespace.String()
    
    	// If AuthzPolicy is mesh-wide
    	if meshWidePolicy(apNs, c) {
    		// If it has selector, need further analysis
    		if ap.GetSelector() != nil {
    			apSelector := klabels.SelectorFromSet(ap.GetSelector().MatchLabels)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 11 20:57:29 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/runtime/cgo/gcc_fatalf.c

    #include <stdarg.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include "libcgo.h"
    
    void
    fatalf(const char* format, ...)
    {
    	va_list ap;
    
    	fprintf(stderr, "runtime/cgo: ");
    	va_start(ap, format);
    	vfprintf(stderr, format, ap);
    	va_end(ap);
    	fprintf(stderr, "\n");
    	abort();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 14:57:16 UTC 2023
    - 526 bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_android.c

    void
    fatalf(const char* format, ...)
    {
    	va_list ap;
    
    	// Write to both stderr and logcat.
    	//
    	// When running from an .apk, /dev/stderr and /dev/stdout
    	// redirect to /dev/null. And when running a test binary
    	// via adb shell, it's easy to miss logcat.
    
    	fprintf(stderr, "runtime/cgo: ");
    	va_start(ap, format);
    	vfprintf(stderr, format, ap);
    	va_end(ap);
    	fprintf(stderr, "\n");
    
    	va_start(ap, format);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 09 23:17:17 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  5. src/runtime/defer_test.go

    }
    
    //go:noinline
    func (f *foo) method2() {
    }
    
    func g2() {
    	var a foo
    	ap := &a
    	// The loop forces this defer to be heap-allocated and the remaining two
    	// to be stack-allocated.
    	for i := 0; i < 1; i++ {
    		defer ap.method1()
    	}
    	defer ap.method2()
    	defer ap.method1()
    	ff1(ap, 1, 2, 3, 4, 5, 6, 7, 8, 9)
    	// Try to get the stack to be moved by growing it too large, so
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:57:24 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  6. src/runtime/mem_sbrk.go

    			}
    			*p = memHdr{}
    			return unsafe.Pointer(p)
    		}
    		prevp = p
    	}
    	return sbrk(n)
    }
    
    func memFree(ap unsafe.Pointer, n uintptr) {
    	n = memRound(n)
    	memclrNoHeapPointers(ap, n)
    	bp := (*memHdr)(ap)
    	bp.size = n
    	bpn := uintptr(ap)
    	if memFreelist == 0 {
    		bp.next = 0
    		memFreelist.set(bp)
    		return
    	}
    	p := memFreelist.ptr()
    	if bpn < uintptr(unsafe.Pointer(p)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. test/typeparam/issue50485.dir/a.go

    type ApplicativeFunctor1[H Header[HT], HT, A, R any] struct {
    	h  Option[H]
    	fn Option[Func1[A, R]]
    }
    
    func (r ApplicativeFunctor1[H, HT, A, R]) ApOption(a Option[A]) Option[R] {
    	return Ap(r.fn, a)
    }
    
    func (r ApplicativeFunctor1[H, HT, A, R]) Ap(a A) Option[R] {
    	return r.ApOption(Some(a))
    }
    
    func Applicative1[A, R any](fn Func1[A, R]) ApplicativeFunctor1[Nil, Nil, A, R] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. pilot/pkg/model/authorization.go

    	Annotations map[string]string           `json:"annotations"`
    	Spec        *authpb.AuthorizationPolicy `json:"spec"`
    }
    
    func (ap *AuthorizationPolicy) NamespacedName() types.NamespacedName {
    	return types.NamespacedName{Name: ap.Name, Namespace: ap.Namespace}
    }
    
    // AuthorizationPolicies organizes AuthorizationPolicy by namespace.
    type AuthorizationPolicies struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. src/debug/pe/symbols_test.go

    		}
    		if name != tp.name {
    			t.Errorf("name check for %d, got %s want %s", k, name, tp.name)
    			continue
    		}
    		ap, err := f.COFFSymbolReadSectionDefAux(k)
    		if tp.ok {
    			if err != nil {
    				t.Errorf("unexpected failure on %d, got error %v", k, err)
    				continue
    			}
    			got := fmt.Sprintf("%+v", *ap)
    			if got != tp.auxstr {
    				t.Errorf("COFFSymbolReadSectionDefAux on %d bad return, got:\n%s\nwant:\n%s\n", k, got, tp.auxstr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 06 18:07:48 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  10. src/crypto/sha512/sha512.go

    	d.Reset()
    	d.Write(data)
    	sum := d.checkSum()
    	ap := (*[Size384]byte)(sum[:])
    	return *ap
    }
    
    // Sum512_224 returns the Sum512/224 checksum of the data.
    func Sum512_224(data []byte) [Size224]byte {
    	d := digest{function: crypto.SHA512_224}
    	d.Reset()
    	d.Write(data)
    	sum := d.checkSum()
    	ap := (*[Size224]byte)(sum[:])
    	return *ap
    }
    
    // Sum512_256 returns the Sum512/256 checksum of the data.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top