Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testReadFully (0.29 sec)

  1. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        out.writeLong(0xDEADBEEFCAFEBABEL);
        out.writeUTF("Herby Derby");
        out.writeFloat(Float.intBitsToFloat(0xCAFEBABE));
        out.writeDouble(Double.longBitsToDouble(0xDEADBEEFCAFEBABEL));
      }
    
      public void testReadFully() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        byte[] b = new byte[data.length];
        in.readFully(b);
        assertEquals(Bytes.asList(data), Bytes.asList(b));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        out.writeLong(0xDEADBEEFCAFEBABEL);
        out.writeUTF("Herby Derby");
        out.writeFloat(Float.intBitsToFloat(0xCAFEBABE));
        out.writeDouble(Double.longBitsToDouble(0xDEADBEEFCAFEBABEL));
      }
    
      public void testReadFully() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        byte[] b = new byte[data.length];
        in.readFully(b);
        assertEquals(Bytes.asList(data), Bytes.asList(b));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        }
        byte[] actual = out.toByteArray();
        for (int i = 0; i < 500 * chunkSize; i += chunkSize) {
          assertThat(Arrays.copyOfRange(actual, i, i + chunkSize)).isEqualTo(dummyData);
        }
      }
    
      public void testReadFully() throws IOException {
        byte[] b = new byte[10];
    
        assertThrows(
            NullPointerException.class, () -> ByteStreams.readFully(newTestStream(10), null, 0, 10));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        }
        byte[] actual = out.toByteArray();
        for (int i = 0; i < 500 * chunkSize; i += chunkSize) {
          assertThat(Arrays.copyOfRange(actual, i, i + chunkSize)).isEqualTo(dummyData);
        }
      }
    
      public void testReadFully() throws IOException {
        byte[] b = new byte[10];
    
        assertThrows(
            NullPointerException.class, () -> ByteStreams.readFully(newTestStream(10), null, 0, 10));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
Back to top