Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 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/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)
  5. 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)
  6. 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)
  7. 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)
  8. pkg/kube/krt/internal.go

    	// We should have a way to opt-in to RV comparison, but not default to it.
    
    	ap, ok := any(a).(proto.Message)
    	if ok {
    		if reflect.TypeOf(ap.ProtoReflect().Interface()) == reflect.TypeOf(ap) {
    			return proto.Equal(ap, any(b).(proto.Message))
    		}
    		// If not, this is an embedded proto most likely... Sneaky.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. src/net/ipsock_posix.go

    	}
    	return nil, &AddrError{Err: "invalid address family", Addr: ip.String()}
    }
    
    func addrPortToSockaddrInet4(ap netip.AddrPort) (syscall.SockaddrInet4, error) {
    	// ipToSockaddrInet4 has special handling here for zero length slices.
    	// We do not, because netip has no concept of a generic zero IP address.
    	addr := ap.Addr()
    	if !addr.Is4() {
    		return syscall.SockaddrInet4{}, &AddrError{Err: "non-IPv4 address", Addr: addr.String()}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/PropertyProfileActivatorTest.java

            activator = new PropertyProfileActivator();
        }
    
        private Profile newProfile(String key, String value) {
            ActivationProperty ap =
                    ActivationProperty.newBuilder().name(key).value(value).build();
    
            Activation a = Activation.newBuilder().property(ap).build();
    
            Profile p = Profile.newBuilder().activation(a).build();
    
            return p;
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top