- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 108 for asSlice (0.4 sec)
-
src/net/netip/inlining_test.go
"uint128.not", "uint128.or", "uint128.subOne", "uint128.xor", } switch runtime.GOARCH { case "amd64", "arm64": // These don't inline on 32-bit. wantInlinable = append(wantInlinable, "Addr.AsSlice", "Addr.Next", "Addr.Prev", ) } for _, want := range wantInlinable { if !got[want] { t.Errorf("%q is no longer inlinable", want) continue } delete(got, want) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 2K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/services_test.go
{ Name: "name", Namespace: "ns", Hostname: "a.example.com", Addresses: []*workloadapi.NetworkAddress{{ Network: testNW, Address: netip.AddrFrom4([4]byte{1, 2, 3, 4}).AsSlice(), }}, Ports: []*workloadapi.Port{{ ServicePort: 80, TargetPort: 80, }}, SubjectAltNames: []string{"san1"}, }, { Name: "name", Namespace: "ns",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 05 12:29:55 UTC 2024 - 2.9K bytes - Viewed (0) -
cni/pkg/ipset/nldeps_linux.go
Comment: comment, IP: net.IP(ip.AsSlice()), Protocol: &ipProto, Replace: replace, }) if err != nil { return fmt.Errorf("failed to add IP %s to ipset %s: %w", ip, name, err) } return nil } func (m *realDeps) deleteIP(name string, ip netip.Addr, ipProto uint8) error { err := netlink.IpsetDel(name, &netlink.IPSetEntry{ IP: net.IP(ip.AsSlice()), Protocol: &ipProto, }) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 30 18:07:05 UTC 2024 - 3.9K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/helpers.go
Network: a.Network(vip, make(labels.Instance, 0)).String(), Address: ip.AsSlice(), }, nil } func (a *index) toNetworkAddressFromIP(ip netip.Addr) *workloadapi.NetworkAddress { return &workloadapi.NetworkAddress{ Network: a.Network(ip.String(), make(labels.Instance, 0)).String(), Address: ip.AsSlice(), } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 22 20:35:23 UTC 2024 - 7.2K bytes - Viewed (0) -
security/pkg/pki/util/san_test.go
func TestBuildSubjectAltNameExtension(t *testing.T) { uriIdentity := Identity{Type: TypeURI, Value: []byte("spiffe://test.domain.com/ns/default/sa/default")} ipIdentity := Identity{Type: TypeIP, Value: netip.MustParseAddr("10.0.0.1").AsSlice()} dnsIdentity := Identity{Type: TypeDNS, Value: []byte("test.domain.com")} testCases := map[string]struct { hosts string expectedExt *pkix.Extension }{ "URI host": {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 17:36:33 UTC 2024 - 6.5K bytes - Viewed (0) -
src/net/addrselect.go
if b4 := b.To4(); b4 != nil { b = b4 } aAsSlice := a.AsSlice() if len(aAsSlice) != len(b) { return 0 } // If IPv6, only up to the prefix (first 64 bits) if len(aAsSlice) > 8 { aAsSlice = aAsSlice[:8] b = b[:8] } for len(aAsSlice) > 0 { if aAsSlice[0] == b[0] { cpl += 8 aAsSlice = aAsSlice[1:] b = b[1:] continue } bits := 8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 00:24:06 UTC 2024 - 9.7K bytes - Viewed (0) -
src/go/types/slice.go
// Source: ../../cmd/compile/internal/types2/slice.go // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types // A Slice represents a slice type. type Slice struct { elem Type } // NewSlice returns a new slice type for the given element type. func NewSlice(elem Type) *Slice { return &Slice{elem: elem} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 701 bytes - Viewed (0) -
src/internal/poll/splice_linux.go
// splice wraps the splice system call. Since the current implementation // only uses splice on sockets and pipes, the offset arguments are unused. // splice returns int instead of int64, because callers never ask it to // move more data in a single call than can fit in an int32. func splice(out int, in int, max int, flags int) (int, error) { n, err := syscall.Splice(in, nil, out, nil, max, flags) return int(n), err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 7.6K bytes - Viewed (0) -
src/os/zero_copy_linux.go
// Streams benefit the most from the splice(2), non-streams are not even supported in old kernels // where splice(2) will just return EINVAL; newer kernels support non-streams like UDP, but I really // doubt that splice(2) could help non-streams, cuz they usually send small frames respectively // and one splice call would result in one frame.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 4.6K bytes - Viewed (0) -
docs_src/security/tutorial003_an_py310.py
"full_name": "John Doe", "email": "******@****.***", "hashed_password": "fakehashedsecret", "disabled": False, }, "alice": { "username": "alice", "full_name": "Alice Wonderson", "email": "alice@example.com", "hashed_password": "fakehashedsecret2", "disabled": True, }, } app = FastAPI() def fake_hash_password(password: str):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 2.5K bytes - Viewed (0)