Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,199 for Pread (0.03 sec)

  1. guava/src/com/google/common/io/CharStreams.java

        char[] buf = new char[DEFAULT_BUF_SIZE];
        int nRead;
        long total = 0;
        while ((nRead = from.read(buf)) != -1) {
          to.write(buf, 0, nRead);
          total += nRead;
        }
        return total;
      }
    
      /**
       * Reads all characters from a {@link Readable} object into a {@link String}. Does not close the
       * {@code Readable}.
       *
       * @param r the object to read from
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

              try (InputStreamReader reader = new InputStreamReader(byteSource.openStream(), cs)) {
                int nRead = 0;
                while (remaining > 0 && (nRead = reader.read(buffer, bufIndex, remaining)) != -1) {
                  bufIndex += nRead;
                  remaining -= nRead;
                }
                if (nRead == -1) {
                  // we reached EOF
                  return new String(buffer, 0, bufIndex);
                }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  3. api/go1.16.txt

    pkg syscall (darwin-arm64), const CFLUSH ideal-int
    pkg syscall (darwin-arm64), const CLOCAL = 32768
    pkg syscall (darwin-arm64), const CLOCAL ideal-int
    pkg syscall (darwin-arm64), const CREAD = 2048
    pkg syscall (darwin-arm64), const CREAD ideal-int
    pkg syscall (darwin-arm64), const CS5 = 0
    pkg syscall (darwin-arm64), const CS5 ideal-int
    pkg syscall (darwin-arm64), const CS6 = 256
    pkg syscall (darwin-arm64), const CS6 ideal-int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  4. api/go1.14.txt

    pkg syscall (freebsd-arm64), const CFLUSH ideal-int
    pkg syscall (freebsd-arm64), const CLOCAL = 32768
    pkg syscall (freebsd-arm64), const CLOCAL ideal-int
    pkg syscall (freebsd-arm64), const CREAD = 2048
    pkg syscall (freebsd-arm64), const CREAD ideal-int
    pkg syscall (freebsd-arm64), const CS5 = 0
    pkg syscall (freebsd-arm64), const CS5 ideal-int
    pkg syscall (freebsd-arm64), const CS6 = 256
    pkg syscall (freebsd-arm64), const CS6 ideal-int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 508.9K bytes
    - Viewed (0)
  5. api/go1.20.txt

    pkg syscall (freebsd-riscv64), const CLOCAL = 32768 #53466
    pkg syscall (freebsd-riscv64), const CLOCAL ideal-int #53466
    pkg syscall (freebsd-riscv64), const CREAD = 2048 #53466
    pkg syscall (freebsd-riscv64), const CREAD ideal-int #53466
    pkg syscall (freebsd-riscv64), const CS5 = 0 #53466
    pkg syscall (freebsd-riscv64), const CS5 ideal-int #53466
    pkg syscall (freebsd-riscv64), const CS6 = 256 #53466
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 21:23:32 UTC 2023
    - 602.6K bytes
    - Viewed (0)
  6. src/archive/zip/reader.go

    }
    
    func (r *checksumReader) Read(b []byte) (n int, err error) {
    	if r.err != nil {
    		return 0, r.err
    	}
    	n, err = r.rc.Read(b)
    	r.hash.Write(b[:n])
    	r.nread += uint64(n)
    	if r.nread > r.f.UncompressedSize64 {
    		return 0, ErrFormat
    	}
    	if err == nil {
    		return
    	}
    	if err == io.EOF {
    		if r.nread != r.f.UncompressedSize64 {
    			return 0, io.ErrUnexpectedEOF
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  7. src/bufio/bufio_test.go

    	buf := make([]byte, 1)
    	if _, err := b.Read(nil); err != nil {
    		t.Fatalf("1st nil Read = %v; want nil", err)
    	}
    	if _, err := b.Read(buf); err != errFake {
    		t.Fatalf("1st Read = %v; want errFake", err)
    	}
    	if _, err := b.Read(nil); err != nil {
    		t.Fatalf("2nd nil Read = %v; want nil", err)
    	}
    	if _, err := b.Read(buf); err != nil {
    		t.Fatalf("3rd Read with buffer = %v; want nil", err)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  8. internal/ringbuffer/ring_buffer_test.go

    		t.Errorf("Read error: got %T, want testError1", err)
    	}
    	if _, err := rb.TryRead([]byte{0}); err != (testError1{}) {
    		t.Errorf("Read error: got %T, want testError1", err)
    	}
    	rb.CloseWithError(testError2{})
    	if _, err := rb.Read(nil); err != (testError1{}) {
    		t.Errorf("Read error: got %T, want testError1", err)
    	}
    	if _, err := rb.Read([]byte{0}); err != (testError1{}) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/cache2/FileOperatorTest.kt

        val buffer = Buffer()
        operator.read(6, buffer, 21)
        operator.read(36, buffer, 1)
        operator.read(5, buffer, 5)
        operator.read(28, buffer, 8)
        operator.read(17, buffer, 10)
        operator.read(36, buffer, 2)
        operator.read(2, buffer, 4)
        operator.write(0, buffer, buffer.size)
        operator.read(0, buffer, 12)
        operator.read(47, buffer, 3)
        operator.read(45, buffer, 2)
        operator.read(47, buffer, 3)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        assertEquals(0, ticker.read());
        assertEquals(10, ticker.read());
        assertEquals(20, ticker.read());
      }
    
      public void testAutoIncrementStep_millis() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, MILLISECONDS);
        assertEquals(0, ticker.read());
        assertEquals(1000000, ticker.read());
        assertEquals(2000000, ticker.read());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 22 13:49:09 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top