Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for availableCapacity (0.64 seconds)

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

        int numChars = reader.read(charBuffer.array(), limit, availableCapacity(charBuffer));
        if (numChars == -1) {
          endOfInput = true;
        } else {
          Java8Compatibility.limit(charBuffer, limit + numChars);
        }
      }
    
      /** Returns the number of elements between the limit and capacity. */
      private static int availableCapacity(Buffer buffer) {
        return buffer.capacity() - buffer.limit();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:36:11 GMT 2025
    - 9.3K bytes
    - Click Count (0)
Back to Top