Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toByteArrayInternal (0.22 sec)

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

       * a total combined length of {@code totalLen} bytes) followed by all bytes remaining in the given
       * input stream.
       */
      private static byte[] toByteArrayInternal(InputStream in, Queue<byte[]> bufs, int totalLen)
          throws IOException {
        // Roughly size to match what has been read already. Some file systems, such as procfs, return 0
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/ByteStreamsTest.java

      }
    
      public void testToByteArray_withSize_givenSizeOneSmallerThanActual() throws IOException {
        InputStream in = new ByteArrayInputStream(PRE_FILLED_100);
        // this results in toByteArrayInternal being called when the stream is actually exhausted
        byte[] b = ByteStreams.toByteArray(in, 99);
        assertThat(b).isEqualTo(PRE_FILLED_100);
      }
    
    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)
  3. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

      }
    
      public void testToByteArray_withSize_givenSizeOneSmallerThanActual() throws IOException {
        InputStream in = new ByteArrayInputStream(PRE_FILLED_100);
        // this results in toByteArrayInternal being called when the stream is actually exhausted
        byte[] b = ByteStreams.toByteArray(in, 99);
        assertThat(b).isEqualTo(PRE_FILLED_100);
      }
    
    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)
Back to top