Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for Account (0.16 sec)

  1. src/bytes/boundary_test.go

    }
    
    func TestCountNearPageBoundary(t *testing.T) {
    	t.Parallel()
    	b := dangerousSlice(t)
    	for i := range b {
    		c := Count(b[i:], []byte{1})
    		if c != 0 {
    			t.Fatalf("Count(b[%d:], {1})=%d, want 0\n", i, c)
    		}
    		c = Count(b[:i], []byte{0})
    		if c != i {
    			t.Fatalf("Count(b[:%d], {0})=%d, want %d\n", i, c, i)
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 30 20:05:58 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/lex/tokenizer.go

    	var s scanner.Scanner
    	s.Init(r)
    	// Newline is like a semicolon; other space characters are fine.
    	s.Whitespace = 1<<'\t' | 1<<'\r' | 1<<' '
    	// Don't skip comments: we need to count newlines.
    	s.Mode = scanner.ScanChars |
    		scanner.ScanFloats |
    		scanner.ScanIdents |
    		scanner.ScanInts |
    		scanner.ScanStrings |
    		scanner.ScanComments
    	s.Position.Filename = name
    	s.IsIdentRune = isIdentRune
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  3. src/bufio/example_test.go

    	// Set the split function for the scanning operation.
    	scanner.Split(bufio.ScanWords)
    	// Count the words.
    	count := 0
    	for scanner.Scan() {
    		count++
    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "reading input:", err)
    	}
    	fmt.Printf("%d\n", count)
    	// Output: 15
    }
    
    // Use a Scanner with a custom split function (built by wrapping ScanWords) to validate
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/expr_test.go

    	{"3%0", "modulo by zero"},
    	{"(1<<63)%0", "modulo of value with high bit set"},
    	{"3<<-4", "negative left shift count"},
    	{"3<<(1<<63)", "negative left shift count"},
    	{"3>>-4", "negative right shift count"},
    	{"3>>(1<<63)", "negative right shift count"},
    	{"(1<<63)>>2", "right shift of value with high bit set"},
    	{"(1<<62)>>2", ""},
    	{`'\x80'`, "illegal UTF-8 encoding for character constant"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  5. api/go1.16.txt

    pkg syscall (darwin-arm64), type Msghdr struct, Pad_cgo_1 [4]uint8
    pkg syscall (darwin-arm64), type Radvisory_t struct
    pkg syscall (darwin-arm64), type Radvisory_t struct, Count int32
    pkg syscall (darwin-arm64), type Radvisory_t struct, Offset int64
    pkg syscall (darwin-arm64), type Radvisory_t struct, Pad_cgo_0 [4]uint8
    pkg syscall (darwin-arm64), type RawSockaddr struct, Data [14]int8
    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)
  6. src/bytes/bytes_test.go

    		buf[n-1] = 'x'
    		for i := 0; i < b.N; i++ {
    			j := Count(buf, buf[n-7:])
    			if j != 1 {
    				b.Fatal("bad count", j)
    			}
    		}
    		buf[n-1] = '\x00'
    	})
    }
    
    func BenchmarkCountEasy(b *testing.B) {
    	benchBytes(b, indexSizes, func(b *testing.B, n int) {
    		buf := bmbuf[0:n]
    		buf[n-1] = 'x'
    		buf[n-7] = 'x'
    		for i := 0; i < b.N; i++ {
    			j := Count(buf, buf[n-7:])
    			if j != 1 {
    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. api/next/62254.txt

    pkg net, method (*TCPConn) SetKeepAliveConfig(KeepAliveConfig) error #62254
    pkg net, type Dialer struct, KeepAliveConfig KeepAliveConfig #62254
    pkg net, type KeepAliveConfig struct #62254
    pkg net, type KeepAliveConfig struct, Count int #62254
    pkg net, type KeepAliveConfig struct, Enable bool #62254
    pkg net, type KeepAliveConfig struct, Idle time.Duration #62254
    pkg net, type KeepAliveConfig struct, Interval time.Duration #62254
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Feb 20 06:04:31 GMT 2024
    - 758 bytes
    - Viewed (0)
  8. src/bufio/scan.go

    	ErrTooLong         = errors.New("bufio.Scanner: token too long")
    	ErrNegativeAdvance = errors.New("bufio.Scanner: SplitFunc returns negative advance count")
    	ErrAdvanceTooFar   = errors.New("bufio.Scanner: SplitFunc returns advance count beyond input")
    	ErrBadReadCount    = errors.New("bufio.Scanner: Read returned impossible count")
    )
    
    const (
    	// MaxScanTokenSize is the maximum size used to buffer a token
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  9. src/bytes/example_test.go

    	fmt.Println(bytes.ContainsFunc([]byte("World"), f))
    	// Output:
    	// false
    	// true
    }
    
    func ExampleCount() {
    	fmt.Println(bytes.Count([]byte("cheese"), []byte("e")))
    	fmt.Println(bytes.Count([]byte("five"), []byte(""))) // before & after each rune
    	// Output:
    	// 3
    	// 5
    }
    
    func ExampleCut() {
    	show := func(s, sep string) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  10. doc/asm.html

    This data contains no pointers and therefore does not need to be
    scanned by the garbage collector.
    </li>
    <li>
    <code>WRAPPER</code> = 32
    <br>
    (For <code>TEXT</code> items.)
    This is a wrapper function and should not count as disabling <code>recover</code>.
    </li>
    <li>
    <code>NEEDCTXT</code> = 64
    <br>
    (For <code>TEXT</code> items.)
    This function is a closure so it uses its incoming context register.
    </li>
    <li>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
Back to top