Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Buf (0.12 sec)

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

          return position - oldPosition;
        }
    
        ByteBuffer buf = ByteBuffer.wrap(createBuffer());
        long total = 0;
        while (from.read(buf) != -1) {
          Java8Compatibility.flip(buf);
          while (buf.hasRemaining()) {
            total += to.write(buf);
          }
          Java8Compatibility.clear(buf);
        }
        return total;
      }
    
      /** Max array length on JVM. */
    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. android/guava/src/com/google/common/net/InetAddresses.java

        //   gap->num   => "num"     gap->gap   => ""
        StringBuilder buf = new StringBuilder(39);
        boolean lastWasNumber = false;
        for (int i = 0; i < hextets.length; i++) {
          boolean thisIsNumber = hextets[i] >= 0;
          if (thisIsNumber) {
            if (lastWasNumber) {
              buf.append(':');
            }
            buf.append(Integer.toHexString(hextets[i]));
          } else {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  3. android/guava/src/com/google/common/base/CharMatcher.java

        }
    
        int len = string.length();
        StringBuilder buf = new StringBuilder((len * 3 / 2) + 16);
    
        int oldpos = 0;
        do {
          buf.append(string, oldpos, pos);
          buf.append(replacement);
          oldpos = pos + 1;
          pos = indexIn(string, oldpos);
        } while (pos != -1);
    
        buf.append(string, oldpos, len);
        return buf.toString();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/FileBackedOutputStream.java

      @CheckForNull
      private File file;
    
      /** ByteArrayOutputStream that exposes its internals. */
      private static class MemoryOutput extends ByteArrayOutputStream {
        byte[] getBuffer() {
          return buf;
        }
    
        int getCount() {
          return count;
        }
      }
    
      /** Returns the file holding the data (possibly null). */
      @VisibleForTesting
      @CheckForNull
      synchronized File getFile() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/BaseEncoding.java

              checkPositionIndexes(off, off + len, buf.length);
    
              int i = off;
              for (; i < off + len; i++) {
                int b = read();
                if (b == -1) {
                  int read = i - off;
                  return read == 0 ? -1 : read;
                }
                buf[i] = (byte) b;
              }
              return i - off;
            }
    
            @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/CharMatcher.java

        }
    
        int len = string.length();
        StringBuilder buf = new StringBuilder((len * 3 / 2) + 16);
    
        int oldpos = 0;
        do {
          buf.append(string, oldpos, pos);
          buf.append(replacement);
          oldpos = pos + 1;
          pos = indexIn(string, oldpos);
        } while (pos != -1);
    
        buf.append(string, oldpos, len);
        return buf.toString();
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedLongs.java

            }
            long rem = x - quotient * radix;
            buf[--i] = Character.forDigit((int) rem, radix);
            x = quotient;
            // Simple modulo/division approach
            while (x > 0) {
              buf[--i] = Character.forDigit((int) (x % radix), radix);
              x /= radix;
            }
          }
          // Generate string
          return new String(buf, i, buf.length - i);
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
Back to top