Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for saturatedMultiply (0.17 sec)

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

        // reading and so all of the bytes in each new allocated buffer are available for reading from
        // the stream.
        for (int bufSize = initialBufferSize;
            totalLen < MAX_ARRAY_LEN;
            bufSize = IntMath.saturatedMultiply(bufSize, bufSize < 4096 ? 4 : 2)) {
          byte[] buf = new byte[min(bufSize, MAX_ARRAY_LEN - totalLen)];
          bufs.add(buf);
          int off = 0;
          while (off < buf.length) {
    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)
Back to top