Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 91 for RB (0.04 sec)

  1. src/io/io_test.go

    	return
    }
    
    func TestReadAtLeastWithDataAndEOF(t *testing.T) {
    	var rb dataAndErrorBuffer
    	rb.err = EOF
    	testReadAtLeast(t, &rb)
    }
    
    func TestReadAtLeastWithDataAndError(t *testing.T) {
    	var rb dataAndErrorBuffer
    	rb.err = fmt.Errorf("fake error")
    	testReadAtLeast(t, &rb)
    }
    
    func testReadAtLeast(t *testing.T, rb ReadWriter) {
    	rb.Write([]byte("0123"))
    	buf := make([]byte, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:04:41 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/unicode/norm/iter.go

    	p := i.p + 1
    	if p >= i.rb.nsrc {
    		p0 := i.p
    		i.setDone()
    		return i.rb.src.bytes[p0:p]
    	}
    	if i.rb.src.bytes[p] < utf8.RuneSelf {
    		p0 := i.p
    		i.p = p
    		return i.rb.src.bytes[p0:p]
    	}
    	i.info = i.rb.f.info(i.rb.src, i.p)
    	i.next = i.rb.f.nextMain
    	return i.next(i)
    }
    
    func nextASCIIString(i *Iter) []byte {
    	p := i.p + 1
    	if p >= i.rb.nsrc {
    		i.buf[0] = i.rb.src.str[i.p]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/unicode/norm/normalize.go

    		rb.doFlush()
    		rb.out = append(rb.out, x...)
    		return false
    	}
    	buf := rb.out[p:]
    	rb.out = rb.out[:p]
    	decomposeToLastBoundary(rb)
    	if s := rb.ss.next(info); s == ssStarter {
    		rb.doFlush()
    		rb.ss.first(info)
    	} else if s == ssOverflow {
    		rb.doFlush()
    		rb.insertCGJ()
    		rb.ss = 0
    	}
    	rb.insertUnsafe(inputBytes(buf), 0, info)
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. internal/ringbuffer/ring_buffer_benchmark_test.go

    	go func() {
    		for {
    			rb.Read(buf)
    		}
    	}()
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		rb.Write(data)
    	}
    }
    
    func BenchmarkRingBuffer_AsyncReadBlocking(b *testing.B) {
    	const sz = 512
    	const buffers = 10
    	rb := New(sz * buffers)
    	rb.SetBlocking(true)
    	data := []byte(strings.Repeat("a", sz))
    	buf := make([]byte, sz)
    
    	go func() {
    		for {
    			rb.Read(buf)
    		}
    	}()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/unicode/norm/transform.go

    	if err == nil && n < len(src) && !atEOF {
    		err = transform.ErrShortSrc
    	}
    	return n, n, err
    }
    
    func flushTransform(rb *reorderBuffer) bool {
    	// Write out (must fully fit in dst, or else it is an ErrShortDst).
    	if len(rb.out) < rb.nrune*utf8.UTFMax {
    		return false
    	}
    	rb.out = rb.out[rb.flushCopy(rb.out):]
    	return true
    }
    
    var errs = []error{nil, transform.ErrShortDst, transform.ErrShortSrc}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/unicode/norm/readwriter.go

    		// Normalize into w.buf.
    		m := len(data)
    		if m > chunk {
    			m = chunk
    		}
    		w.rb.src = inputBytes(data[:m])
    		w.rb.nsrc = m
    		w.buf = doAppend(&w.rb, w.buf, 0)
    		data = data[m:]
    		n += m
    
    		// Write out complete prefix, save remainder.
    		// Note that lastBoundary looks back at most 31 runes.
    		i := lastBoundary(&w.rb.f, w.buf)
    		if i == -1 {
    			i = 0
    		}
    		if i > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_request_files/test_tutorial003_an.py

        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
                files=(
                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
                ),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_files/test_tutorial003_py39.py

        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
                files=(
                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
                ),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/tables.go

    		[6]*argField{ap_Reg_16_20, ap_NegOffset_31_31_6_10_shift3, ap_Reg_11_15}},
    	{HASHCHKP, 0xfc0007fe00000000, 0x7c00056400000000, 0x0, // Hash Check Privileged X-form (hashchkp RB,offset(RA))
    		[6]*argField{ap_Reg_16_20, ap_NegOffset_31_31_6_10_shift3, ap_Reg_11_15}},
    	{HASHST, 0xfc0007fe00000000, 0x7c0005a400000000, 0x0, // Hash Store X-form (hashst RB,offset(RA))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 334.7K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_files/test_tutorial003.py

        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
                files=(
                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
                ),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 7.1K bytes
    - Viewed (0)
Back to top