Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for compact (0.25 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. src/arena/arena.go

    best used in bulk, on the order of MiB of memory allocated on each use.
    
    Note that by allowing for this limited form of manual memory allocation
    that use-after-free bugs are possible with regular Go values. This package
    limits the impact of these use-after-free bugs by preventing reuse of freed
    memory regions until the garbage collector is able to determine that it is
    safe. Typically, a use-after-free bug will result in a fault and a helpful
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  4. api/go1.16.txt

    pkg debug/elf, const DT_MIPS_AUX_DYNAMIC DynTag
    pkg debug/elf, const DT_MIPS_BASE_ADDRESS = 1879048198
    pkg debug/elf, const DT_MIPS_BASE_ADDRESS DynTag
    pkg debug/elf, const DT_MIPS_COMPACT_SIZE = 1879048239
    pkg debug/elf, const DT_MIPS_COMPACT_SIZE DynTag
    pkg debug/elf, const DT_MIPS_CONFLICT = 1879048200
    pkg debug/elf, const DT_MIPS_CONFLICT DynTag
    pkg debug/elf, const DT_MIPS_CONFLICTNO = 1879048203
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
  5. .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)
  6. src/cmd/cgo/internal/test/issue1435.go

    					break
    				}
    				if filter == "Groups:" && strings.HasPrefix(line, "Groups:\t") {
    					// https://github.com/golang/go/issues/46145
    					// Containers don't reliably output this line in sorted order so manually sort and compare that.
    					a := strings.Split(line[8:], " ")
    					sort.Strings(a)
    					got := strings.Join(a, " ")
    					if got == expected[8:] {
    						foundAThread = true
    						break
    					}
    
    				}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  7. api/go1.18.txt

    pkg net/netip, method (Addr) As16() [16]uint8
    pkg net/netip, method (Addr) As4() [4]uint8
    pkg net/netip, method (Addr) AsSlice() []uint8
    pkg net/netip, method (Addr) BitLen() int
    pkg net/netip, method (Addr) Compare(Addr) int
    pkg net/netip, method (Addr) Is4() bool
    pkg net/netip, method (Addr) Is4In6() bool
    pkg net/netip, method (Addr) Is6() bool
    pkg net/netip, method (Addr) IsGlobalUnicast() bool
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  8. 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)
  9. src/bytes/buffer.go

    // included to match [bufio.Writer]'s WriteRune. The buffer is grown as needed;
    // if it becomes too large, WriteRune will panic with [ErrTooLarge].
    func (b *Buffer) WriteRune(r rune) (n int, err error) {
    	// Compare as uint32 to correctly handle negative runes.
    	if uint32(r) < utf8.RuneSelf {
    		b.WriteByte(byte(r))
    		return 1, nil
    	}
    	b.lastRead = opInvalid
    	m, ok := b.tryGrowByReslice(utf8.UTFMax)
    	if !ok {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  10. api/go1.21.txt

    pkg slices, func Clone[$0 interface{ ~[]$1 }, $1 interface{}]($0) $0 #57433
    pkg slices, func Compact[$0 interface{ ~[]$1 }, $1 comparable]($0) $0 #57433
    pkg slices, func CompactFunc[$0 interface{ ~[]$1 }, $1 interface{}]($0, func($1, $1) bool) $0 #57433
    pkg slices, func Compare[$0 interface{ ~[]$1 }, $1 cmp.Ordered]($0, $0) int #60091
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Aug 07 09:39:17 GMT 2023
    - 25.6K bytes
    - Viewed (0)
Back to top