Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for n2 (0.16 sec)

  1. src/bufio/bufio_test.go

    	if n != 10 || err != nil {
    		t.Fatalf("Write returned (%v, %v), want (10, nil)", n, err)
    	}
    
    	// Use ReadFrom to read in some data.
    	n2, err := w.ReadFrom(strings.NewReader("abcdef"))
    	if n2 != 6 || err != nil {
    		t.Fatalf("ReadFrom returned (%v, %v), want (6, nil)", n2, err)
    	}
    }
    
    type emptyThenNonEmptyReader struct {
    	r io.Reader
    	n int
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    Examples:
    </p>
    
    <pre>
    var a = [...]int{0, 1, 2, 3, 4, 5, 6, 7}
    var s = make([]int, 6)
    var b = make([]byte, 5)
    n1 := copy(s, a[0:])            // n1 == 6, s == []int{0, 1, 2, 3, 4, 5}
    n2 := copy(s, s[2:])            // n2 == 4, s == []int{2, 3, 4, 5, 4, 5}
    n3 := copy(b, "Hello, World!")  // n3 == 5, b == []byte("Hello")
    </pre>
    
    
    <h3 id="Deletion_of_map_elements">Deletion of map elements</h3>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    		wantErr:   ErrHeader,
    	}, {
    		inputData: padInput("1\n2\n3\n"),
    		inputHdrs: map[string]string{paxGNUSparseMajor: "1", paxGNUSparseMinor: "0"},
    		wantMap:   sparseDatas{{2, 3}},
    	}, {
    		inputData: padInput("1\n2\n"),
    		inputHdrs: map[string]string{paxGNUSparseMajor: "1", paxGNUSparseMinor: "0"},
    		wantErr:   io.ErrUnexpectedEOF,
    	}, {
    		inputData: padInput("1\n2\n\n"),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    	{" ", nil},
    	{"\u3000 ", nil},
    	{" \u3000", nil},
    	{" \t\r\n \t\t\r\r\n\n ", nil},
    	{" \t\r\n x\t\t\r\r\n\n ", []byte("x")},
    	{" \u2000\t\r\n x\t\t\r\r\ny\n \u3000", []byte("x\t\t\r\r\ny")},
    	{"1 \t\r\n2", []byte("1 \t\r\n2")},
    	{" x\x80", []byte("x\x80")},
    	{" x\xc0", []byte("x\xc0")},
    	{"x \xc0\xc0 ", []byte("x \xc0\xc0")},
    	{"x \xc0", []byte("x \xc0")},
    	{"x \xc0 ", []byte("x \xc0")},
    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)
  5. doc/go_spec.html

    Examples:
    </p>
    
    <pre>
    var a = [...]int{0, 1, 2, 3, 4, 5, 6, 7}
    var s = make([]int, 6)
    var b = make([]byte, 5)
    n1 := copy(s, a[0:])            // n1 == 6, s is []int{0, 1, 2, 3, 4, 5}
    n2 := copy(s, s[2:])            // n2 == 4, s is []int{2, 3, 4, 5, 4, 5}
    n3 := copy(b, "Hello, World!")  // n3 == 5, b is []byte("Hello")
    </pre>
    
    
    <h3 id="Clear">Clear</h3>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top