Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 110 for bytereg (0.1 sec)

  1. src/net/port_unix.go

    package net
    
    import (
    	"internal/bytealg"
    	"sync"
    )
    
    var onceReadServices sync.Once
    
    func readServices() {
    	file, err := open("/etc/services")
    	if err != nil {
    		return
    	}
    	defer file.close()
    
    	for line, ok := file.readLine(); ok; line, ok = file.readLine() {
    		// "http 80/tcp www www-http # World Wide Web HTTP"
    		if i := bytealg.IndexByteString(line, '#'); i >= 0 {
    			line = line[:i]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/internal/bytealg/lastindexbyte_generic.go

    // Copyright 2023 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 bytealg
    
    func LastIndexByte(s []byte, c byte) int {
    	for i := len(s) - 1; i >= 0; i-- {
    		if s[i] == c {
    			return i
    		}
    	}
    	return -1
    }
    
    func LastIndexByteString(s string, c byte) int {
    	for i := len(s) - 1; i >= 0; i-- {
    		if s[i] == c {
    			return i
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 15:08:28 UTC 2023
    - 440 bytes
    - Viewed (0)
  3. src/internal/bytealg/indexbyte_generic.go

    //go:build !386 && (!amd64 || plan9) && !s390x && !arm && !arm64 && !loong64 && !ppc64 && !ppc64le && !mips && !mipsle && !mips64 && !mips64le && !riscv64 && !wasm
    
    package bytealg
    
    func IndexByte(b []byte, c byte) int {
    	for i, x := range b {
    		if x == c {
    			return i
    		}
    	}
    	return -1
    }
    
    func IndexByteString(s string, c byte) int {
    	for i := 0; i < len(s); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:30:15 UTC 2023
    - 776 bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/generated.pb.go

    			}
    			var byteLen int
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return io.ErrUnexpectedEOF
    				}
    				b := dAtA[iNdEx]
    				iNdEx++
    				byteLen |= int(b&0x7F) << shift
    				if b < 0x80 {
    					break
    				}
    			}
    			if byteLen < 0 {
    				return ErrInvalidLengthGenerated
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  5. src/internal/bytealg/equal_native.go

    // Copyright 2018 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 bytealg
    
    import "unsafe"
    
    // The declarations below generate ABI wrappers for functions
    // implemented in assembly in this package but declared in another
    // package.
    
    // The compiler generates calls to runtime.memequal and runtime.memequal_varlen.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 24 00:56:36 UTC 2019
    - 789 bytes
    - Viewed (0)
  6. src/internal/bytealg/index_native.go

    // Copyright 2018 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.
    
    //go:build amd64 || arm64 || s390x || ppc64le || ppc64
    
    package bytealg
    
    // Index returns the index of the first instance of b in a, or -1 if b is not present in a.
    // Requires 2 <= len(b) <= MaxLen.
    //
    //go:noescape
    func Index(a, b []byte) int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 02 22:56:35 UTC 2023
    - 590 bytes
    - Viewed (0)
  7. src/net/dnsconfig_unix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !windows
    
    // Read system DNS config from /etc/resolv.conf
    
    package net
    
    import (
    	"internal/bytealg"
    	"internal/stringslite"
    	"net/netip"
    	"time"
    )
    
    // See resolv.conf(5) on a Linux machine.
    func dnsReadConfig(filename string) *dnsConfig {
    	conf := &dnsConfig{
    		ndots:    1,
    		timeout:  5 * time.Second,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 22:14:43 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. src/net/lookup_plan9.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 net
    
    import (
    	"context"
    	"errors"
    	"internal/bytealg"
    	"internal/itoa"
    	"internal/stringslite"
    	"io"
    	"os"
    )
    
    // cgoAvailable set to true to indicate that the cgo resolver
    // is available on Plan 9. Note that on Plan 9 the cgo resolver
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:08:38 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. src/io/fs/readdir.go

    // Copyright 2020 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 fs
    
    import (
    	"errors"
    	"internal/bytealg"
    	"slices"
    )
    
    // ReadDirFS is the interface implemented by a file system
    // that provides an optimized implementation of [ReadDir].
    type ReadDirFS interface {
    	FS
    
    	// ReadDir reads the named directory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. src/crypto/internal/nistec/nistec_test.go

    		if !bytes.Equal(g1.Bytes(), newPoint().Bytes()) {
    			t.Error("[N - k]G + [k]G != ∞")
    		}
    	}
    
    	byteLen := len(c.Params().N.Bytes())
    	bitLen := c.Params().N.BitLen()
    	t.Run("0", func(t *testing.T) { checkScalar(t, make([]byte, byteLen)) })
    	t.Run("1", func(t *testing.T) {
    		checkScalar(t, big.NewInt(1).FillBytes(make([]byte, byteLen)))
    	})
    	t.Run("N-1", func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 18:48:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top