- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 1,770 for equal (0.04 sec)
-
guava/src/com/google/common/primitives/Shorts.java
*/ public static int hashCode(short value) { return value; } /** * Returns the {@code short} value that is equal to {@code value}, if possible. * * @param value any value in the range of the {@code short} type * @return the {@code short} value that equals {@code value} * @throws IllegalArgumentException if {@code value} is greater than {@link Short#MAX_VALUE} or * less than {@link Short#MIN_VALUE}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 27 16:47:48 UTC 2024 - 25.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactHashing.java
int lastEntryIndex = -1; do { int entryIndex = next - 1; int entry = entries[entryIndex]; if (getHashPrefix(entry, mask) == hashPrefix && Objects.equal(key, keys[entryIndex]) && (values == null || Objects.equal(value, values[entryIndex]))) { int newNext = getNext(entry, mask); if (lastEntryIndex == -1) { // we need to update the root link from table[]
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 15:34:52 UTC 2024 - 7.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ObjectCountHashMap.java
@ParametricNullness public K getElement() { return key; } void updateLastKnownIndex() { if (lastKnownIndex == -1 || lastKnownIndex >= size() || !Objects.equal(key, keys[lastKnownIndex])) { lastKnownIndex = indexOf(key); } } @SuppressWarnings("unchecked") // values only contains Vs @Override public int getCount() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 01 22:07:10 UTC 2021 - 15K bytes - Viewed (0) -
internal/kms/secret-key_test.go
} plaintext, err := KMS.Decrypt(context.TODO(), &DecryptRequest{ Name: key.KeyID, Ciphertext: key.Ciphertext, }) if err != nil { t.Fatalf("Failed to decrypt key: %v", err) } if !bytes.Equal(key.Plaintext, plaintext) { t.Fatalf("Decrypted key does not match generated one: got %x - want %x", key.Plaintext, plaintext) } } func TestDecryptKey(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 2.9K bytes - Viewed (0) -
schema/naming_test.go
} ns := NamingStrategy{} for key, value := range maps { if ns.toDBName(key) != value { t.Errorf("%v toName should equal %v, but got %v", key, value, ns.toDBName(key)) } } maps = map[string]string{ "x": "X", "user_restrictions": "UserRestriction",
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue May 30 02:00:48 UTC 2023 - 7K bytes - Viewed (0) -
src/archive/zip/writer_test.go
idx := bytes.Index(b, sig[:]) if idx == -1 { t.Fatal("file header not found") } b = b[idx:] if !bytes.Equal(b[6:10], []byte{0, 0, 0, 0}) { // FileHeader.Flags: 0, FileHeader.Method: 0 t.Errorf("unexpected method and flags: %v", b[6:10]) } if !bytes.Equal(b[14:26], make([]byte, 12)) { // FileHeader.{CRC32,CompressSize,UncompressedSize} all zero.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 14.4K bytes - Viewed (0) -
cmd/bitrot.go
if algo != HighwayHash256S { h := algo.New() if n, err := io.Copy(h, r); err != nil || n != wantSize { // Premature failure in reading the object, file is corrupt. return errFileCorrupt } if !bytes.Equal(h.Sum(nil), want) { return errFileCorrupt } return nil } h := algo.New() hashBuf := make([]byte, h.Size()) left := wantSize // Calculate the size of the bitrot file and compare
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/c/c_api_internal.h
namespace tensorflow { // Set the shapes and types of the output's handle. // // The lengths of the arrays pointed to by `shapes`, `ranks`, and `types` must // all be equal to `num_shapes_and_types`. If `ranks[i] != -1`, (i.e., if the // rank is known), then it must be equal to the length of `shapes[i]`; if // `ranks[i] == 1`, then `shapes[i]` may be nullptr. // // TODO(akshayka): Implement a corresponding getter method.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat May 13 00:49:12 UTC 2023 - 7.6K bytes - Viewed (0) -
src/bytes/boundary_test.go
return b[pagesize : 2*pagesize] } func TestEqualNearPageBoundary(t *testing.T) { t.Parallel() b := dangerousSlice(t) for i := range b { b[i] = 'A' } for i := 0; i <= len(b); i++ { Equal(b[:i], b[len(b)-i:]) Equal(b[len(b)-i:], b[:i]) } } func TestIndexByteNearPageBoundary(t *testing.T) { t.Parallel() b := dangerousSlice(t) for i := range b { idx := IndexByte(b[i:], 1) if idx != -1 {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Nov 30 20:05:58 UTC 2023 - 2.8K bytes - Viewed (0) -
cmd/os_unix.go
break // EOF } } consumed, name, typ, err := parseDirEnt(buf[boff:nbuf]) if err != nil { return err } boff += consumed if len(name) == 0 || bytes.Equal(name, []byte{'.'}) || bytes.Equal(name, []byte{'.', '.'}) { continue } // Fallback for filesystems (like old XFS) that don't // support Dirent.Type and have DT_UNKNOWN (0) there // instead.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.3K bytes - Viewed (0)