Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for compact (0.16 sec)

  1. src/bytes/buffer_test.go

    	}
    	c, err := b.ReadByte()
    	if err != nil {
    		t.Fatalf("ReadByte: %v", err)
    	}
    	if c != 'm' {
    		t.Errorf("ReadByte = %q; want %q", c, 'm')
    	}
    }
    
    // Tests that we occasionally compact. Issue 5154.
    func TestBufferGrowth(t *testing.T) {
    	var b Buffer
    	buf := make([]byte, 1024)
    	b.Write(buf[0:1])
    	var cap0 int
    	for i := 0; i < 5<<10; i++ {
    		b.Write(buf)
    		b.Read(buf)
    		if i == 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    support for concurrent programming.  Programs are constructed from
    <i>packages</i>, whose properties allow efficient management of
    dependencies.
    </p>
    
    <p>
    The grammar is compact and simple to parse, allowing for easy analysis
    by automatic tools such as integrated development environments.
    </p>
    
    <h2 id="Notation">Notation</h2>
    <p>
    The syntax is specified using Extended Backus-Naur Form (EBNF):
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. .github/ISSUE_TEMPLATE/config.yml

    blank_issues_enabled: true
    contact_links:
      - name: Questions
        about: Please use one of the forums for questions or general discussions
    Others
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Nov 22 18:12:58 GMT 2023
    - 179 bytes
    - Viewed (0)
  4. src/bytes/example_test.go

    }
    
    func ExampleCompare() {
    	// Interpret Compare's result by comparing it to zero.
    	var a, b []byte
    	if bytes.Compare(a, b) < 0 {
    		// a less b
    	}
    	if bytes.Compare(a, b) <= 0 {
    		// a less or equal b
    	}
    	if bytes.Compare(a, b) > 0 {
    		// a greater b
    	}
    	if bytes.Compare(a, b) >= 0 {
    		// a greater or equal b
    	}
    
    	// Prefer Equal to Compare for equality comparisons.
    	if bytes.Equal(a, b) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  5. doc/godebug.md

    connecting to servers with buggy HTTP/2 implementations.
    These kinds of changes are unavoidable and
    [permitted by the Go 1 compatibility rules](/doc/go1compat).
    Even so, Go provides a mechanism called GODEBUG to
    reduce the impact such changes have on Go developers
    using newer toolchains to compile old code.
    
    A GODEBUG setting is a `key=value` pair
    that controls the execution of certain parts of a Go program.
    The environment variable `GODEBUG`
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  6. src/bytes/bytes_test.go

    			for i := 0; i < n; i++ {
    				x[i] = 'a'
    			}
    
    			for i := 0; i < n; i++ {
    				y[i] = 'a'
    			}
    
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				Compare(x, y)
    			}
    		})
    	}
    }
    
    func BenchmarkIndexAnyASCII(b *testing.B) {
    	x := Repeat([]byte{'#'}, 2048) // Never matches set
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  7. doc/go_spec.html

    support for concurrent programming.  Programs are constructed from
    <i>packages</i>, whose properties allow efficient management of
    dependencies.
    </p>
    
    <p>
    The syntax is compact and simple to parse, allowing for easy analysis
    by automatic tools such as integrated development environments.
    </p>
    
    <h2 id="Notation">Notation</h2>
    <p>
    The syntax is specified using a
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  8. src/bytes/bytes.go

    	return string(a) == string(b)
    }
    
    // Compare returns an integer comparing two byte slices lexicographically.
    // The result will be 0 if a == b, -1 if a < b, and +1 if a > b.
    // A nil argument is equivalent to an empty slice.
    func Compare(a, b []byte) int {
    	return bytealg.Compare(a, 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)
  9. api/go1.22.txt

    pkg go/types, method (Checker) PkgNameOf(*ast.ImportSpec) *PkgName #62037
    pkg go/types, type Alias struct #63223
    pkg go/types, type Info struct, FileVersions map[*ast.File]string #62605
    pkg go/version, func Compare(string, string) int #62039
    pkg go/version, func IsValid(string) bool #62039
    pkg go/version, func Lang(string) string #62039
    pkg html/template, const ErrJSTemplate //deprecated #61619
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Jan 24 20:54:27 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  10. doc/go_mem.html

    Other memory operations are <i>write-like</i>, including write, atomic write, mutex unlock, channel send, and channel close.
    Some, such as atomic compare-and-swap, are both read-like and write-like.
    </p>
    
    <p>
    A <i>goroutine execution</i> is modeled as a set of memory operations executed by a single goroutine.
    </p>
    
    <p>
    <b>Requirement 1</b>:
    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)
Back to top