Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for Goff (0.31 sec)

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

          bufs.add(buf);
          int off = 0;
          while (off < buf.length) {
            // always OK to fill buf; its size plus the rest of bufs is never more than MAX_ARRAY_LEN
            int r = in.read(buf, off, buf.length - off);
            if (r == -1) {
              return combineBuffers(bufs, totalLen);
            }
            off += r;
            totalLen += r;
          }
        }
    
    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-tests/test/com/google/common/io/ByteSourceTest.java

        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              int pos;
    
              @Override
              public boolean processBytes(byte[] buf, int off, int len) throws IOException {
                System.arraycopy(buf, off, processedBytes, pos, len);
                pos += len;
                return true;
              }
    
              @Override
              public byte[] getResult() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

                new ByteProcessor<Integer>() {
                  @Override
                  public boolean processBytes(byte[] buf, int off, int len) {
                    assertThat(newPreFilledByteArray(8192))
                        .isEqualTo(Arrays.copyOfRange(buf, off, off + len));
                    return false;
                  }
    
                  @Override
                  public Integer getResult() {
    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. android/guava/src/com/google/common/io/ByteSource.java

          if (optionalUnslicedSize.isPresent()) {
            long unslicedSize = optionalUnslicedSize.get();
            long off = Math.min(offset, unslicedSize);
            return Optional.of(Math.min(length, unslicedSize - off));
          }
          return Optional.absent();
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

          limiter.acquire(); // #5
        }
        stopwatch.sleepMillis(4250); // #6, back to cold state (warmup period + repay last acquire)
        for (int i = 0; i < 11; i++) {
          limiter.acquire(); // #7, showing off the warmup starting from totally cold
        }
    
        // make sure the areas (times) remain the same, while permits are different
        assertEvents(
            "R0.00, R1.38, R1.13, R0.88, R0.63, R0.50, R0.50, R0.50", // #1
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java

             * ended up with a magic value that is not compatible with the type of the configured mojo parameter (a string
             * could still be converted by the configurator so we leave those alone). If so, back off to evaluating the
             * expression from properties only.
             */
            if (value != null && type != null && !(value instanceof String) && !isTypeCompatible(type, value)) {
                value = null;
            }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Oct 17 17:55:08 GMT 2023
    - 16.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Ascii.java

       * single "stop" control is required to interrupt or turn off ancillary devices, DC4 is the
       * preferred assignment.)
       *
       * @since 8.0
       */
      public static final byte DC3 = 19; // aka XOFF
    
      /**
       * Transmission off. See {@link #XON} for explanation.
       *
       * @since 8.0
       */
      public static final byte XOFF = 19; // aka DC3
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterator<Integer> consumingIterator = Iterables.consumingIterable(queue).iterator();
        /*
         * Make sure that we can get an element off without calling
         * UnIterableQueue.iterator().
         */
        assertEquals(5, consumingIterator.next().intValue());
      }
    
      private static class UnIterableQueue<T> extends ForwardingQueue<T> {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileOutputStream.java

                        len -= cnt;
                        off += cnt;
                    }
                    else {
                        if ( log.isTraceEnabled() ) {
                            log.trace(String.format("Wrote at %d remain %d off %d len %d", this.fp, len - w, off, w));
                        }
                        this.req.setParam(fh.getFid(), this.fp, len - w, b, off, w);
                        th.send(this.req, this.rsp);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableRangeMap.java

              public Range<K> get(int index) {
                checkElementIndex(index, len);
                if (index == 0 || index == len - 1) {
                  return ranges.get(index + off).intersection(range);
                } else {
                  return ranges.get(index + off);
                }
              }
    
              @Override
              boolean isPartialView() {
                return true;
              }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.7K bytes
    - Viewed (0)
Back to top