Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 182 for allocates (0.06 seconds)

  1. guava/src/com/google/common/base/Joiner.java

        }
        return join(parts.iterator());
      }
    
      /*
       * TODO: b/381289911 - Make the Iterator overload use StringJoiner (including Android or not)—or
       * some other optimization, given that StringJoiner can over-allocate:
       * https://bugs.openjdk.org/browse/JDK-8305774
       */
    
      // TODO: b/381289911 - Optimize MapJoiner similarly to Joiner (including Android or not).
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Apr 14 15:16:19 GMT 2025
    - 21K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/primitives/Chars.java

            result);
        return (int) result;
      }
    
      /**
       * Returns a big-endian representation of {@code value} in a 2-element byte array; equivalent to
       * {@code ByteBuffer.allocate(2).putChar(value).array()}. For example, the input value {@code
       * '\\u5432'} would yield the byte array {@code {0x54, 0x32}}.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.2K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/Shorts.java

            result);
        return (int) result;
      }
    
      /**
       * Returns a big-endian representation of {@code value} in a 2-element byte array; equivalent to
       * {@code ByteBuffer.allocate(2).putShort(value).array()}. For example, the input value {@code
       * (short) 0x1234} would yield the byte array {@code {0x12, 0x34}}.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  4. guava/src/com/google/common/primitives/Shorts.java

            result);
        return (int) result;
      }
    
      /**
       * Returns a big-endian representation of {@code value} in a 2-element byte array; equivalent to
       * {@code ByteBuffer.allocate(2).putShort(value).array()}. For example, the input value {@code
       * (short) 0x1234} would yield the byte array {@code {0x12, 0x34}}.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  5. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertEquals(-1, ArbitraryInstances.get(InputStream.class).read());
        assertEquals(-1, ArbitraryInstances.get(ByteArrayInputStream.class).read());
        assertEquals(-1, ArbitraryInstances.get(Readable.class).read(CharBuffer.allocate(1)));
        assertEquals(-1, ArbitraryInstances.get(Reader.class).read());
        assertEquals(-1, ArbitraryInstances.get(StringReader.class).read());
        assertEquals(0, ArbitraryInstances.get(Buffer.class).capacity());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  6. 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) {
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 45.2K bytes
    - Click Count (0)
  7. docs/smb3-features/02-persistent-handles-design.md

            long mostSig = bb.getLong();
            long leastSig = bb.getLong();
            this.guid = new UUID(mostSig, leastSig);
        }
        
        public byte[] toBytes() {
            ByteBuffer bb = ByteBuffer.allocate(16);
            bb.putLong(guid.getMostSignificantBits());
            bb.putLong(guid.getLeastSignificantBits());
            return bb.array();
        }
        
        @Override
        public String toString() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 31.6K bytes
    - Click Count (0)
  8. CHANGELOG/CHANGELOG-1.35.md

    - Extended resources requested by initContainers which are allocated using an automatic ResourceClaim now match the behavior of legacy device plugins, reusing the same resources requested by later sidecar initContainers or regular containers when possible, to minimize the total number of devices requested by the pod....
    Created: Fri Dec 26 09:05:12 GMT 2025
    - Last Modified: Wed Dec 17 13:01:55 GMT 2025
    - 228.5K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/HashBiMap.java

        private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
        int size = stream.readInt();
        init(16); // resist hostile attempts to allocate gratuitous heap
        Serialization.populateMap(this, stream, size);
      }
    
      // TODO(cpovirk): Should we have a serialVersionUID here?
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 16 14:46:34 GMT 2025
    - 37.1K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/FluentIterable.java

       * stream.toArray(MyType[]::new)}. Otherwise use {@code stream.toArray( len -> (E[])
       * Array.newInstance(type, len))}.
       *
       * @param type the type of the elements
       * @return a newly-allocated array into which all the elements of this fluent iterable have been
       *     copied
       */
      @GwtIncompatible // Array.newArray(Class, int)
      public final E[] toArray(Class<@NonNull E> type) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 34.7K bytes
    - Click Count (0)
Back to Top