Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for allocated (0.18 sec)

  1. android/guava/src/com/google/common/collect/Iterables.java

      }
    
      /**
       * Copies an iterable's elements into an array.
       *
       * @param iterable the iterable to copy
       * @param type the type of the elements
       * @return a newly-allocated array into which all the elements of the iterable have been copied
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      public static <T extends @Nullable Object> T[] toArray(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Preconditions.java

     * them, even though they usually won't be needed. If you have such arguments, use the conventional
     * if/throw idiom instead.
     *
     * <p>Depending on your message arguments, memory may be allocated for boxing and varargs array
     * creation. However, the methods of this class have a large number of overloads that prevent such
     * allocations in many common cases.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return CharBuffer.allocate(generateInt());
      }
    
      @Generates
      ByteBuffer generateByteBuffer() {
        return ByteBuffer.allocate(generateInt());
      }
    
      @Generates
      ShortBuffer generateShortBuffer() {
        return ShortBuffer.allocate(generateInt());
      }
    
      @Generates
      IntBuffer generateIntBuffer() {
        return IntBuffer.allocate(generateInt());
      }
    
      @Generates
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterators.java

       * hasNext()} method will return {@code false}.
       *
       * @param iterator the iterator to copy
       * @param type the type of the elements
       * @return a newly-allocated array into which all the elements of the iterator have been copied
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      public static <T extends @Nullable Object> T[] toArray(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/FileUtil.java

            final FileInputStream is = InputStreamUtil.create(file);
            try {
                final FileChannel channel = is.getChannel();
                final ByteBuffer buffer = ByteBuffer.allocate((int) ChannelUtil.size(channel));
                ChannelUtil.read(channel, buffer);
                return buffer.array();
            } finally {
                CloseableUtil.close(is);
            }
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/relocation/UserPropertiesArtifactRelocationSource.java

                            relocation.global ? "User global relocation" : "User project relocation");
                    LOGGER.debug(
                            "The artifact {} has been relocated to {}: {}",
                            original,
                            result,
                            relocation.global ? "User global relocation" : "User project relocation");
                    return result;
                }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return CharBuffer.allocate(generateInt());
      }
    
      @Generates
      ByteBuffer generateByteBuffer() {
        return ByteBuffer.allocate(generateInt());
      }
    
      @Generates
      ShortBuffer generateShortBuffer() {
        return ShortBuffer.allocate(generateInt());
      }
    
      @Generates
      IntBuffer generateIntBuffer() {
        return IntBuffer.allocate(generateInt());
      }
    
      @Generates
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/CopyUtil.java

         */
        protected static int copyInternal(final FileInputStream in, final OutputStream out) {
            try {
                final FileChannel channel = in.getChannel();
                final ByteBuffer buffer = ByteBuffer.allocate(DEFAULT_BUF_SIZE);
                final byte[] buf = buffer.array();
                int len;
                int amount = 0;
                while ((len = ChannelUtil.read(channel, buffer, amount)) != -1) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 52.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

        out[0] = b;
        System.arraycopy(array, 0, out, 1, array.length);
        return out;
      }
    
      @GwtIncompatible // java.nio.ByteBuffer
      private static byte[] toByteArray(int h) {
        return ByteBuffer.allocate(4).putInt(h).array();
      }
    
      public void testNewEnumSet_empty() {
        EnumSet<SomeEnum> copy = newEnumSet(Collections.<SomeEnum>emptySet(), SomeEnum.class);
        assertEquals(EnumSet.noneOf(SomeEnum.class), copy);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

              // there's a way around creating the separate sortedKeys array, and if we're allocating
              // one array of size n, we might as well allocate two -- to say nothing of the allocation
              // done in Arrays.sort.
              for (int i = 0; i < size; i++) {
                // We're careful to put only K instances in.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top