Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for cutInt (0.12 sec)

  1. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashing.java

            public void putHash(HashCode hashCode) {
                hasher.putInt(hashCode.length());
                hasher.putHash(hashCode);
            }
    
            @Override
            public void putInt(int value) {
                hasher.putInt(4);
                hasher.putInt(value);
            }
    
            @Override
            public void putLong(long value) {
                hasher.putInt(8);
                hasher.putLong(value);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:30 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. src/strings/strings.go

    }
    
    // TrimLeft returns a slice of the string s with all leading
    // Unicode code points contained in cutset removed.
    //
    // To remove a prefix, use [TrimPrefix] instead.
    func TrimLeft(s, cutset string) string {
    	if s == "" || cutset == "" {
    		return s
    	}
    	if len(cutset) == 1 && cutset[0] < utf8.RuneSelf {
    		return trimLeftByte(s, cutset[0])
    	}
    	if as, ok := makeASCIISet(cutset); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/descriptor/UrlRepositoryDescriptor.java

                cacheHasher.putString(implementation.getName());
                cacheHasher.putInt(metadataResources.size());
                for (ResourcePattern ivyPattern : metadataResources) {
                    cacheHasher.putString(ivyPattern.getPattern());
                }
                cacheHasher.putInt(artifactResources.size());
                for (ResourcePattern artifactPattern : artifactResources) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheKey.kt

                        putString(relativeSubDir)
                    }
                }
            }
        }
    
        private
        fun Hasher.putAll(list: Collection<String>) {
            putInt(list.size)
            list.forEach(::putString)
        }
    
        /**
         * Returns the path of [target] relative to [base] if
         * [target] is a child of [base] or `null` otherwise.
         */
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/internal/classpath/DefaultCachedClasspathTransformerTest.groovy

            then:
            cachedClasspath.asFiles == [cachedFile]
    
            and:
            1 * transform.applyConfigurationTo(_) >> { Hasher hasher -> hasher.putInt(123) }
            1 * transform.apply(_, _, _) >> { entry, visitor, data ->
                assert entry.name == "a.class"
                Pair.of(entry.path, visitor)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  6. android/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);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 47.8K bytes
    - Viewed (0)
  7. 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);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  8. src/reflect/value.go

    }
    
    // These conversion functions are returned by convertOp
    // for classes of conversions. For example, the first function, cvtInt,
    // takes any value v of signed int type and returns the value converted
    // to type t, where t is any signed or unsigned int type.
    
    // convertOp: intXX -> [u]intXX
    func cvtInt(v Value, t Type) Value {
    	return makeInt(v.flag.ro(), uint64(v.Int()), t)
    }
    
    // convertOp: uintXX -> [u]intXX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/test.go

    		if (n != 0 && n != 239089) || m != 234 {
    			t.Fatal("Strtol x2: ", n, m)
    		}
    	} else if n != 0 || m != 234 {
    		t.Fatal("Strtol x2: ", n, m)
    	}
    	C.free(unsafe.Pointer(p))
    }
    
    var (
    	cuint  = (C.uint)(0)
    	culong C.ulong
    	cchar  C.char
    )
    
    type Context struct {
    	ctx *C.struct_ibv_context
    }
    
    func benchCgoCall(b *testing.B) {
    	b.Run("add-int", func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
Back to top