Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 110 for bytereg (1.47 sec)

  1. src/crypto/elliptic/nistec.go

    		return p, errors.New("overflowing coordinate")
    	}
    	// Encode the coordinates and let SetBytes reject invalid points.
    	byteLen := (curve.params.BitSize + 7) / 8
    	buf := make([]byte, 1+2*byteLen)
    	buf[0] = 4 // uncompressed point
    	x.FillBytes(buf[1 : 1+byteLen])
    	y.FillBytes(buf[1+byteLen : 1+2*byteLen])
    	return curve.newPoint().SetBytes(buf)
    }
    
    func (curve *nistCurve[Point]) pointToAffine(p Point) (x, y *big.Int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 16:19:34 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  2. src/internal/types/testdata/fixedbugs/issue50281.go

    }
    
    func _[S ~string | ~[]byte](s S) {
    	var buf []byte
    	_ = append(buf, s...)
    }
    
    // test case from issue
    
    type byteseq interface {
    	string | []byte
    }
    
    // This should allow to eliminate the two functions above.
    func AppendByteString[source byteseq](buf []byte, s source) []byte {
    	return append(buf, s[1:6]...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 554 bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    		tests: []testFnc{
    			testHeader{Header{
    				Typeflag: TypeReg,
    				Name:     "small.txt",
    				Size:     5,
    				Mode:     0640,
    				Uid:      73025,
    				Gid:      5000,
    				Uname:    "dsymonds",
    				Gname:    "eng",
    				ModTime:  time.Unix(1246508266, 0),
    			}, nil},
    			testWrite{"Kilts", 5, nil},
    
    			testHeader{Header{
    				Typeflag: TypeReg,
    				Name:     "small2.txt",
    				Size:     11,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  4. src/net/ipsock.go

    	} else {
    		host = hostport[:i]
    		if bytealg.IndexByteString(host, ':') >= 0 {
    			return addrErr(hostport, tooManyColons)
    		}
    	}
    	if bytealg.IndexByteString(hostport[j:], '[') >= 0 {
    		return addrErr(hostport, "unexpected '[' in address")
    	}
    	if bytealg.IndexByteString(hostport[k:], ']') >= 0 {
    		return addrErr(hostport, "unexpected ']' in address")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. src/net/nss.go

    		if len(line) == 0 {
    			continue
    		}
    		colon := bytealg.IndexByteString(line, ':')
    		if colon == -1 {
    			conf.err = errors.New("no colon on line")
    			return conf
    		}
    		db := trimSpace(line[:colon])
    		srcs := line[colon+1:]
    		for {
    			srcs = trimSpace(srcs)
    			if len(srcs) == 0 {
    				break
    			}
    			sp := bytealg.IndexByteString(srcs, ' ')
    			var src string
    			if sp == -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:15:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  6. src/net/sockopt_posix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix || windows
    
    package net
    
    import (
    	"internal/bytealg"
    	"runtime"
    	"syscall"
    )
    
    // Boolean to int.
    func boolint(b bool) int {
    	if b {
    		return 1
    	}
    	return 0
    }
    
    func interfaceToIPv4Addr(ifi *Interface) (IP, error) {
    	if ifi == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 15:06:47 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. src/internal/bytealg/indexbyte_native.go

    // license that can be found in the LICENSE file.
    
    //go:build 386 || (amd64 && !plan9) || s390x || arm || arm64 || loong64 || ppc64 || ppc64le || mips || mipsle || mips64 || mips64le || riscv64 || wasm
    
    package bytealg
    
    //go:noescape
    func IndexByte(b []byte, c byte) int
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:30:15 UTC 2023
    - 438 bytes
    - Viewed (0)
  8. src/internal/filepathlite/path_plan9.go

    // Copyright 2010 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 filepathlite
    
    import (
    	"internal/bytealg"
    	"internal/stringslite"
    )
    
    const (
    	Separator     = '/'    // OS-specific path separator
    	ListSeparator = '\000' // OS-specific path list separator
    )
    
    func IsPathSeparator(c uint8) bool {
    	return Separator == c
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 952 bytes
    - Viewed (0)
  9. src/cmd/internal/objabi/pkgspecial.go

    	"runtime/msan",
    	"runtime/asan",
    	// We omit bytealg even though it's imported by runtime because it also
    	// backs a lot of package bytes. Currently we don't have a way to omit race
    	// instrumentation when used from the runtime while keeping race
    	// instrumentation when used from user code. Somehow this doesn't seem to
    	// cause problems, though we may be skating on thin ice. See #61204.
    	"-internal/bytealg",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 02:32:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. src/internal/filepathlite/path_unix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix || (js && wasm) || wasip1
    
    package filepathlite
    
    import (
    	"internal/bytealg"
    	"internal/stringslite"
    )
    
    const (
    	Separator     = '/' // OS-specific path separator
    	ListSeparator = ':' // OS-specific path list separator
    )
    
    func IsPathSeparator(c uint8) bool {
    	return Separator == c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 935 bytes
    - Viewed (0)
Back to top