Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for ab (0.13 sec)

  1. src/cmd/asm/internal/arch/arm.go

    	arm.ABEQ,
    	arm.ABNE,
    	arm.ABCS,
    	arm.ABCC,
    	arm.ABMI,
    	arm.ABPL,
    	arm.ABVS,
    	arm.ABVC,
    	arm.ABHI,
    	arm.ABLS,
    	arm.ABGE,
    	arm.ABLT,
    	arm.ABGT,
    	arm.ABLE,
    	arm.AB,
    	obj.ANOP,
    }
    
    // ARMConditionCodes handles the special condition code situation for the ARM.
    // It returns a boolean to indicate success; failure means cond was unrecognized.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Nov 18 17:59:44 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    	{"Trim", []byte{'a', 'a'}, "a", nil},
    	{"Trim", []byte{'a'}, "ab", nil},
    	{"Trim", []byte{'a', 'b'}, "ab", nil},
    	{"Trim", []byte("☺"), "☺", nil},
    	{"TrimLeft", nil, "", nil},
    	{"TrimLeft", []byte{}, "", nil},
    	{"TrimLeft", []byte{'a'}, "a", nil},
    	{"TrimLeft", []byte{'a', 'a'}, "a", nil},
    	{"TrimLeft", []byte{'a'}, "ab", nil},
    	{"TrimLeft", []byte{'a', 'b'}, "ab", nil},
    	{"TrimLeft", []byte("☺"), "☺", nil},
    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)
  3. src/archive/tar/reader_test.go

    		tests: []testFnc{
    			testRemaining{8, 5},
    			testRead{3, "ab\x00", nil},
    			testRead{10, "\x00\x00cde", io.EOF},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeSparse{makeReg{"abcde", 5}, sparseDatas{{0, 2}, {5, 3}}, 8},
    		tests: []testFnc{
    			testRemaining{8, 5},
    			testWriteTo{fileOps{"ab", int64(3), "cde"}, 8, nil},
    			testRemaining{0, 0},
    		},
    	}, {
    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/archive/tar/strconv_test.go

    			t.Errorf("formatPAXTime(%ds, %dns): got %q, want %q",
    				v.sec, v.nsec, got, v.want)
    		}
    	}
    }
    
    func TestParsePAXRecord(t *testing.T) {
    	medName := strings.Repeat("CD", 50)
    	longName := strings.Repeat("AB", 100)
    
    	vectors := []struct {
    		in      string
    		wantRes string
    		wantKey string
    		wantVal string
    		ok      bool
    	}{
    		{"6 k=v\n\n", "\n", "k", "v", true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  5. src/bytes/buffer_test.go

    			t.Errorf("Write: got (%d, %v), want (%d, %v)", n, err, want, nil)
    		}
    		check(t, "TestBasicOperations (4)", &buf, "a")
    
    		buf.WriteByte(testString[1])
    		check(t, "TestBasicOperations (5)", &buf, "ab")
    
    		n, err = buf.Write(testBytes[2:26])
    		if want := 24; err != nil || n != want {
    			t.Errorf("Write: got (%d, %v), want (%d, %v)", n, err, want, nil)
    		}
    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)
  6. src/bytes/compare_test.go

    	{[]byte(""), []byte("a"), -1},
    	{[]byte("abc"), []byte("abc"), 0},
    	{[]byte("abd"), []byte("abc"), 1},
    	{[]byte("abc"), []byte("abd"), -1},
    	{[]byte("ab"), []byte("abc"), -1},
    	{[]byte("abc"), []byte("ab"), 1},
    	{[]byte("x"), []byte("ab"), 1},
    	{[]byte("ab"), []byte("x"), -1},
    	{[]byte("x"), []byte("a"), 1},
    	{[]byte("b"), []byte("x"), -1},
    	// test runtime·memeq's chunked implementation
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  7. src/archive/tar/writer_test.go

    		tests: []testFnc{
    			testRemaining{8, 5},
    			testWrite{"ab\x00\x00\x00cde", 8, nil},
    			testWrite{"a", 0, ErrWriteTooLong},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeSparse{makeReg{5, "abcde"}, sparseHoles{{2, 3}}, 8},
    		tests: []testFnc{
    			testWrite{"ab\x00\x00\x00cdez", 8, ErrWriteTooLong},
    			testRemaining{0, 0},
    		},
    	}, {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  8. src/archive/zip/reader_test.go

    0000340 99 a4 25 72 85 49 2c be 0b 5b af 8f e5 6e 81 a6
    0000350 a3 5a 6f 39 53 3a ab 7a 8b 1e 26 f7 46 6c 7d 26
    0000360 53 b3 22 31 94 d3 83 f2 18 4d f5 92 33 27 53 97
    0000370 0f d3 e6 55 9c a6 c5 31 87 6f d3 f3 ae 39 6f 56
    0000380 10 7b ab 7e d0 b4 ca f2 b8 05 be 3f 0e 6e 5a 75
    0000390 ab 0c f5 37 0e ba 8e 75 71 7a aa ed 7a dd 6a 63
    00003a0 be 9b a0 97 27 6a 6f e7 d3 8b c4 7c ec d3 91 56
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  9. src/bufio/bufio_test.go

    	}
    
    	// Test for issue 3022, not exposing a reader's error on a successful Peek.
    	buf = NewReaderSize(dataAndEOFReader("abcd"), 32)
    	if s, err := buf.Peek(2); string(s) != "ab" || err != nil {
    		t.Errorf(`Peek(2) on "abcd", EOF = %q, %v; want "ab", nil`, string(s), err)
    	}
    	if s, err := buf.Peek(4); string(s) != "abcd" || err != nil {
    		t.Errorf(`Peek(4) on "abcd", EOF = %q, %v; want "abcd", nil`, string(s), err)
    	}
    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)
  10. src/bytes/example_test.go

    }
    
    func ExampleBuffer_Next() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s", b.Next(2))
    	// Output:
    	// ab
    	// cd
    	// e
    }
    
    func ExampleBuffer_Read() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	rdbuf := make([]byte, 1)
    	n, err := b.Read(rdbuf)
    	if err != nil {
    		panic(err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
Back to top