Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for B1 (0.15 sec)

  1. src/bytes/compare_test.go

    	b.StopTimer()
    	pattern := []byte("Hello Gophers!")
    	b1 := make([]byte, 0, 1<<20+len(pattern))
    	for len(b1) < 1<<20 {
    		b1 = append(b1, pattern...)
    	}
    	b2 := make([]byte, len(b1))
    	copy(b2, b1)
    	b.StartTimer()
    	for j := 0; j < b.N; j++ {
    		if Compare(b1[offset:], b2[offset:]) != 0 {
    			b.Fatal("b1 != b2")
    		}
    	}
    	b.SetBytes(int64(len(b1[offset:])))
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    	}
    
    	var w1 writeCountingDiscard
    	b1 := NewWriterSize(&w1, 1234)
    	b1.WriteString(strings.Repeat("x", 1200))
    	b1.Flush()
    	if w1 != 1 {
    		t.Fatalf("flush 1200 'x's: got %d writes, want 1", w1)
    	}
    	b1.WriteString(strings.Repeat("x", 89))
    	if w1 != 1 {
    		t.Fatalf("write 1200 + 89 'x's: got %d writes, want 1", w1)
    	}
    	io.Copy(b1, onlyReader{strings.NewReader(strings.Repeat("x", 700))})
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  3. src/archive/zip/reader_test.go

    0000460 18 a6 83 1b e3 9f ad 79 fe fd 1b 8b f1 fc 41 6f
    0000470 d4 13 1f e3 b8 83 ba 64 92 e7 eb e4 77 05 8f ba
    0000480 fa 3b 00 00 ff ff 50 4b 07 08 a6 18 b1 91 5e 04
    0000490 00 00 e4 47 00 00 50 4b 01 02 14 00 14 00 08 00
    00004a0 08 00 00 00 00 00 a6 18 b1 91 5e 04 00 00 e4 47
    00004b0 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00
    00004c0 00 00 00 00 62 69 67 67 65 72 2e 7a 69 70 50 4b
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    		// different start alignments
    		b1 := b[i:]
    		for j := 0; j < len(b1); j++ {
    			b1[j] = 'x'
    			pos := IndexByte(b1, 'x')
    			if pos != j {
    				t.Errorf("IndexByte(%q, 'x') = %v", b1, pos)
    			}
    			b1[j] = 0
    			pos = IndexByte(b1, 'x')
    			if pos != -1 {
    				t.Errorf("IndexByte(%q, 'x') = %v", b1, pos)
    			}
    		}
    		// different end alignments
    		b1 = b[:i]
    		for j := 0; j < len(b1); j++ {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    <pre>
    type (
    	A1 = string
    	A2 = A1
    )
    
    type (
    	B1 string
    	B2 B1
    	B3 []B1
    	B4 B3
    )
    </pre>
    
    <p>
    The underlying type of <code>string</code>, <code>A1</code>, <code>A2</code>, <code>B1</code>,
    and <code>B2</code> is <code>string</code>.
    The underlying type of <code>[]B1</code>, <code>B3</code>, and <code>B4</code> is <code>[]B1</code>.
    </p>
    
    <h3 id="Method_sets">Method sets</h3>
    <p>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  6. doc/go_spec.html

    	A2 = A1
    )
    
    type (
    	B1 string
    	B2 B1
    	B3 []B1
    	B4 B3
    )
    
    func f[P any](x P) { … }
    </pre>
    
    <p>
    The underlying type of <code>string</code>, <code>A1</code>, <code>A2</code>, <code>B1</code>,
    and <code>B2</code> is <code>string</code>.
    The underlying type of <code>[]B1</code>, <code>B3</code>, and <code>B4</code> is <code>[]B1</code>.
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 279.3K bytes
    - Viewed (0)
Back to top