Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for allocates (0.05 seconds)

  1. doc/go_spec.html

    </p>
    
    <p>
    If the argument is a type <code>T</code>, then <code>new(T)</code>
    allocates a variable of type <code>T</code> initialized to its
    <a href="#The_zero_value">zero value</a>.
    </p>
    
    <p>
    If the argument is an expression <code>x</code>, then <code>new(x)</code>
    allocates a variable of the type of <code>x</code> initialized to the value of <code>x</code>.
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 02 23:07:19 GMT 2025
    - 286.5K bytes
    - Click Count (1)
  2. src/bytes/bytes_test.go

    			old = []byte(tt.old)
    			new = []byte(tt.new)
    		)
    		if !asan.Enabled {
    			allocs := testing.AllocsPerRun(10, func() { Replace(in, old, new, tt.n) })
    			if allocs > 1 {
    				t.Errorf("Replace(%q, %q, %q, %d) allocates %.2f objects", tt.in, tt.old, tt.new, tt.n, allocs)
    			}
    		}
    		in = append(in, "<spare>"...)
    		in = in[:len(tt.in)]
    		out := Replace(in, old, new, tt.n)
    		if s := string(out); s != tt.out {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 23 23:54:14 GMT 2025
    - 62.9K bytes
    - Click Count (0)
  3. guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java

      }
    
      @Override
      public HashCode hashInt(int input) {
        return hashBytes(ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(input).array());
      }
    
      @Override
      public HashCode hashLong(long input) {
        return hashBytes(ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(input).array());
      }
    
      @Override
      public HashCode hashUnencodedChars(CharSequence input) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 04 15:39:10 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

      }
    
      public void testFromByteArray_withTooLongArrayInputThrowsIllegalArgumentException() {
        byte[] buffer = MANY_VALUES_PAIRED_STATS.toByteArray();
        byte[] tooLongByteArray =
            ByteBuffer.allocate(buffer.length + 2)
                .order(ByteOrder.LITTLE_ENDIAN)
                .put(buffer)
                .putChar('.')
                .array();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 14K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/math/PairedStatsTest.java

      }
    
      public void testFromByteArray_withTooLongArrayInputThrowsIllegalArgumentException() {
        byte[] buffer = MANY_VALUES_PAIRED_STATS.toByteArray();
        byte[] tooLongByteArray =
            ByteBuffer.allocate(buffer.length + 2)
                .order(ByteOrder.LITTLE_ENDIAN)
                .put(buffer)
                .putChar('.')
                .array();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 14K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ObjectArrays.java

       * of the returned array is that of the specified array. If the collection fits in the specified
       * array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the
       * specified array and the size of the specified collection.
       *
       * <p>If the collection fits in the specified array with room to spare (i.e., the array has more
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 09 15:48:28 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ObjectArrays.java

       * of the returned array is that of the specified array. If the collection fits in the specified
       * array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the
       * specified array and the size of the specified collection.
       *
       * <p>If the collection fits in the specified array with room to spare (i.e., the array has more
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 09 15:48:28 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  8. architecture/standards/0008-use-nullaway.md

    * IDE warnings become more accurate, reducing warnings fatigue.
    * Public API nullability annotations become closer to reality.
    * Java compilation of Gradle code suffers from small performance penalty (up to 10%).
    * Time has to be allocated to clean up existing projects.
    * One has to write NullAway-conformant code even when hacking.
    * Some patterns used to satisfy NullAway can be slightly more verbose.
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Dec 11 10:24:40 GMT 2025
    - 4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

         */
        @Override
        public Object evaluate(final String template, final Map<String, Object> paramMap) {
            // Null-safety: return null for blank templates
            // Early return is safe here as no resources have been allocated yet
            if (StringUtil.isBlank(template)) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Template is blank, returning null");
                }
                return null;
            }
    
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  10. 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.6K bytes
    - Click Count (0)
Back to Top