- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 52 for new224 (0.13 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/extension_test.go
} if err = json.Unmarshal(newData, &new2); err != nil { t.Errorf("2nd unmarshal error: %v", err) } if !bytes.Equal(data, newData) { t.Errorf("%s: re-marshaled data differs from original: %v %v", k, data, newData) } if !reflect.DeepEqual(tc.orig, new1) { t.Errorf("%s: unmarshaled struct differs from original: %v %v", k, tc.orig, new1) } if !reflect.DeepEqual(new1, new2) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 22:36:37 UTC 2017 - 2.8K bytes - Viewed (0) -
src/crypto/sha512/sha512.go
// New512_256 returns a new hash.Hash computing the SHA-512/256 checksum. func New512_256() hash.Hash { d := &digest{function: crypto.SHA512_256} d.Reset() return d } // New384 returns a new hash.Hash computing the SHA-384 checksum. func New384() hash.Hash { if boring.Enabled { return boring.NewSHA384() } d := &digest{function: crypto.SHA384} d.Reset() return d } func (d *digest) Size() int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:50:58 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/kubelet/cm/dra/state/checkpoint.go
object = strings.Replace(object, "DRAManagerCheckpointWithoutResourceHandles", "DRAManagerCheckpoint", 1) object = strings.Replace(object, "ClaimInfoStateListWithoutResourceHandles", "ClaimInfoStateList", 1) hash := fnv.New32a() fmt.Fprintf(hash, "%v", object) if checkSum != checksum.Checksum(hash.Sum32()) { return errors.ErrCorruptCheckpoint } return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 15:23:10 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/ledger/util.go
const ( hashLength = 8 ) type hash [hashLength]byte func bitIsSet(bits []byte, i int) bool { return bits[i/8]&(1<<uint(7-i%8)) != 0 } func hasher(data ...[]byte) []byte { hasher := murmur3.New64() for i := 0; i < len(data); i++ { _, _ = hasher.Write(data[i]) } result := hasher.Sum(nil) return result } // for sorting type dataArray [][]byte func (d dataArray) Len() int {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_striped.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 22 17:16:59 UTC 2018 - 1.6K bytes - Viewed (0) -
test/typeparam/issue50552.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 21:51:51 UTC 2022 - 196 bytes - Viewed (0) -
src/go/doc/doc_test.go
type G1[T any] struct { *s3 } func NewG1[T any]() G1[T] { return G1[T]{} } func (G1[T]) MG1() {} func (*G1[U]) MG2() {} type G2[T, U any] struct {} func NewG2[T, U any]() G2[T, U] { return G2[T, U]{} } func (G2[T, U]) MG3() {} func (*G2[A, B]) MG4() {} ` var funcsPackage = &Package{ Funcs: []*Func{{Name: "F"}}, Types: []*Type{ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:52 UTC 2022 - 6.7K bytes - Viewed (0) -
src/internal/types/testdata/check/issues1.go
~uint } type T2[U Unsigned] struct { s U } func (u T2[U]) Add1() U { return u.s + 1 } func NewT2[U any]() T2[U /* ERROR "U does not satisfy Unsigned" */ ] { return T2[U /* ERROR "U does not satisfy Unsigned" */ ]{} } func _() { u := NewT2[string]() _ = u.Add1() } // When we encounter an instantiated type such as Elem[T] we must
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:56:37 UTC 2023 - 6K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/state/checkpoint.go
return nil } ck := cp.Checksum cp.Checksum = 0 object := dump.ForHash(cp) object = strings.Replace(object, "CPUManagerCheckpointV1", "CPUManagerCheckpoint", 1) cp.Checksum = ck hash := fnv.New32a() fmt.Fprintf(hash, "%v", object) if cp.Checksum != checksum.Checksum(hash.Sum32()) { return errors.ErrCorruptCheckpoint } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 27 01:24:22 UTC 2023 - 4.3K bytes - Viewed (0) -
pkg/ledger/ledger_test.go
assert.Equal(t, firstHash != secondHash, true) lastHash, err := l.Put("foo", "bar") assert.NoError(t, err) assert.Equal(t, firstHash, lastHash) } func MyHasher(data ...[]byte) (result []byte) { hasher := murmur3.New64() for i := 0; i < len(data); i++ { hasher.Write(data[i]) } result = hasher.Sum(nil) hasher.Reset() return } func TestCollision(t *testing.T) { hit := false
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 12 16:12:59 UTC 2023 - 4K bytes - Viewed (0)