Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 440 for readFull (0.39 sec)

  1. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

        throw new UnsupportedOperationException("readLine is not supported");
      }
    
      @Override
      public void readFully(byte[] b) throws IOException {
        ByteStreams.readFully(this, b);
      }
    
      @Override
      public void readFully(byte[] b, int off, int len) throws IOException {
        ByteStreams.readFully(this, b, off, len);
      }
    
      @Override
      public int skipBytes(int n) throws IOException {
        return (int) in.skip(n);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/RandomAccessFileTest.java

                    byte[] buf = new byte[4];
    
                    raf.readFully(buf);
                    assertArrayEquals(new byte[] {
                        0x1, 0x2, 0x3, 0x4
                    }, buf);
                    assertEquals(4, raf.getFilePointer());
    
                    raf.readFully(buf);
                    assertArrayEquals(new byte[] {
                        0x5, 0x6, 0x7, 0x8
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ByteArrayDataInput.java

     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface ByteArrayDataInput extends DataInput {
      @Override
      void readFully(byte b[]);
    
      @Override
      void readFully(byte b[], int off, int len);
    
      // not guaranteed to skip n bytes so result should NOT be ignored
      // use ByteStreams.skipFully or one of the read methods instead
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/LittleEndianDataInputStream.java

        throw new UnsupportedOperationException("readLine is not supported");
      }
    
      @Override
      public void readFully(byte[] b) throws IOException {
        ByteStreams.readFully(this, b);
      }
    
      @Override
      public void readFully(byte[] b, int off, int len) throws IOException {
        ByteStreams.readFully(this, b, off, len);
      }
    
      @Override
      public int skipBytes(int n) throws IOException {
        return (int) in.skip(n);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/configdump/secret_test.go

    	}
    	defer configDumpFile.Close()
    	configDump, err := io.ReadAll(configDumpFile)
    	if err != nil {
    		t.Errorf("error reading test data file: %v", err)
    	}
    
    	outFile, err := os.Open("testdata/secret/output")
    	if err != nil {
    		t.Errorf("error opening test data output file: %v", err)
    	}
    	defer outFile.Close()
    	expectedOut, err := io.ReadAll(outFile)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 06 15:14:48 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/ByteArrayDataInput.java

     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface ByteArrayDataInput extends DataInput {
      @Override
      void readFully(byte b[]);
    
      @Override
      void readFully(byte b[], int off, int len);
    
      // not guaranteed to skip n bytes so result should NOT be ignored
      // use ByteStreams.skipFully or one of the read methods instead
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. src/encoding/csv/reader_test.go

    					t.Fatalf("unexpected Readall() error: %v", err)
    				}
    				if !reflect.DeepEqual(out, tt.Output) {
    					t.Fatalf("ReadAll() output:\ngot  %q\nwant %q", out, tt.Output)
    				}
    			}
    
    			// Check input offset after call ReadAll()
    			inputByteSize := len(input)
    			inputOffset := r.InputOffset()
    			if err == nil && int64(inputByteSize) != inputOffset {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 14 04:25:13 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  8. src/encoding/base64/base64_test.go

    	dec := NewDecoder(StdEncoding, strings.NewReader(encoded))
    	res1, err := io.ReadAll(dec)
    	if err != nil {
    		t.Errorf("ReadAll failed: %v", err)
    	}
    
    	dec = NewDecoder(StdEncoding, strings.NewReader(encodedShort))
    	var res2 []byte
    	res2, err = io.ReadAll(dec)
    	if err != nil {
    		t.Errorf("ReadAll failed: %v", err)
    	}
    
    	if !bytes.Equal(res1, res2) {
    		t.Error("Decoded results not equal")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 03 18:57:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  9. src/runtime/semasleep_test.go

    	// stdout to close. Wait closes the read/parent end of stdout, so
    	// starting this goroutine prior to io.ReadAll introduces a race
    	// condition where ReadAll may get fs.ErrClosed if the child exits too
    	// quickly.
    	waiting = true
    	go func() {
    		doneCh <- cmd.Wait()
    		close(doneCh)
    	}()
    
    	// Wait for an arbitrary timeout longer than one second. The subprocess itself
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. src/net/http/clientserver_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	firstRead = firstRead[:n]
    
    	close(cancel)
    
    	rest, err := io.ReadAll(res.Body)
    	all := string(firstRead) + string(rest)
    	if all != "Hello" {
    		t.Errorf("Read %q (%q + %q); want Hello", all, firstRead, rest)
    	}
    	if err != ExportErrRequestCanceled {
    		t.Errorf("ReadAll error = %v; want %v", err, ExportErrRequestCanceled)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
Back to top