Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for isSame (0.19 sec)

  1. src/bytes/bytes.go

    // It is analogous to the facilities of the [strings] package.
    package bytes
    
    import (
    	"internal/bytealg"
    	"unicode"
    	"unicode/utf8"
    )
    
    // Equal reports whether a and b
    // are the same length and contain the same bytes.
    // A nil argument is equivalent to an empty slice.
    func Equal(a, b []byte) bool {
    	// Neither cmd/compile nor gccgo allocates for these string conversions.
    	return string(a) == string(b)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/amd64.s

    // This input was created by taking the instruction productions in
    // the old assembler's (6a's) grammar and hand-writing complete
    // instructions for each rule, to guarantee we cover the same space.
    
    #include "../../../../../runtime/textflag.h"
    
    TEXT	foo(SB), DUPOK|NOSPLIT, $0
    
    // LTYPE1 nonrem	{ outcode($1, &$2); }
    	NEGQ	R11
    	NEGQ	4(R11)
    	NEGQ	foo+4(SB)
    
    // LTYPE2 rimnon	{ outcode($1, &$2); }
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 18:57:21 GMT 2019
    - 3.3K bytes
    - Viewed (0)
  3. src/archive/zip/zip_test.go

    	return last.off + last.n
    }
    
    func (r *rleBuffer) Write(p []byte) (n int, err error) {
    	var rp *repeatedByte
    	if len(r.buf) > 0 {
    		rp = &r.buf[len(r.buf)-1]
    		// Fast path, if p is entirely the same byte repeated.
    		if lastByte := rp.b; len(p) > 0 && p[0] == lastByte {
    			if bytes.Count(p, []byte{lastByte}) == len(p) {
    				rp.n += int64(len(p))
    				return len(p), nil
    			}
    		}
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  4. src/bytes/reader_test.go

    		// should not happen
    		t.Fatal(err)
    	}
    	if err := buf.UnreadByte(); err == nil {
    		t.Fatal("UnreadByte: expected error, got nil")
    	}
    }
    
    // verify that copying from an empty reader always has the same results,
    // regardless of the presence of a WriteTo method.
    func TestReaderCopyNothing(t *testing.T) {
    	type nErr struct {
    		n   int64
    		err error
    	}
    	type justReader struct {
    		io.Reader
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Dec 13 18:45:54 GMT 2021
    - 8K bytes
    - Viewed (0)
  5. api/go1.1.txt

    pkg syscall (linux-386), const IFLA_BROADCAST = 2
    pkg syscall (linux-386), const IFLA_COST = 8
    pkg syscall (linux-386), const IFLA_IFALIAS = 20
    pkg syscall (linux-386), const IFLA_IFNAME = 3
    pkg syscall (linux-386), const IFLA_LINK = 5
    pkg syscall (linux-386), const IFLA_LINKINFO = 18
    pkg syscall (linux-386), const IFLA_LINKMODE = 17
    pkg syscall (linux-386), const IFLA_MAP = 14
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  6. src/cmd/asm/doc.go

    object file can then be combined with other objects into a package archive.
    
    # Command Line
    
    Usage:
    
    	go tool asm [flags] file
    
    The specified file must be a Go assembly file.
    The same assembler is used for all target operating systems and architectures.
    The GOOS and GOARCH environment variables set the desired target.
    
    Flags:
    
    	-D name[=value]
    		Predefine symbol name with an optional simple value.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 20:46:45 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  7. doc/next/6-stdlib/99-minor/reflect/60427.md

    The new methods synonymous with the method of the same name
    in [Value] are added to [Type]:
    1. [Type.OverflowComplex]
    2. [Type.OverflowFloat]
    3. [Type.OverflowInt]
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 187 bytes
    - Viewed (0)
  8. doc/next/6-stdlib/99-minor/net/http/66008.md

    The new [ParseCookie] function parses a Cookie header value and
    returns all the cookies which were set in it. Since the same cookie
    name can appear multiple times the returned Values can contain
    more than one value for a given key.
    
    The new [ParseSetCookie] function parses a Set-Cookie header value and
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Apr 17 17:43:50 GMT 2024
    - 359 bytes
    - Viewed (0)
  9. doc/go_mem.html

    }
    </style>
    
    <h2 id="introduction">Introduction</h2>
    
    <p>
    The Go memory model specifies the conditions under which
    reads of a variable in one goroutine can be guaranteed to
    observe values produced by writes to the same variable in a different goroutine.
    </p>
    
    
    <h3 id="advice">Advice</h3>
    
    <p>
    Programs that modify data being simultaneously accessed by multiple goroutines
    must serialize such access.
    </p>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  10. src/buildall.bash

    	export GOARCH=$(echo $target | sed 's/.*-//')
    	unset GOARM
    	if [ "$GOARCH" = "arm5" ]; then
    		export GOARCH=arm
    		export GOARM=5
    	fi
    
    	# Build and vet everything.
    	# cmd/go/internal/work/exec.go enables the same vet flags during go test of std cmd
    	# and should be kept in sync with any vet flag changes here.
    	if ! "$GOROOT/bin/go" build std cmd || ! "$GOROOT/bin/go" vet -unsafeptr=false std cmd; then
    		failed=true
    		if $sete; then
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 23 17:45:23 GMT 2024
    - 2.1K bytes
    - Viewed (0)
Back to top