- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for crc (0.03 sec)
-
android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
} private static int referenceCrc(byte[] bytes) { int crc = ~0; for (byte b : bytes) { crc = (crc >>> 8) ^ Crc32cHashFunction.Crc32cHasher.byteTable[(crc ^ b) & 0xFF]; } return ~crc; } /** * Verifies that the crc of an array of byte data matches the expected value. * * @param expectedCrc the expected crc value. * @param data the data to run the checksum on. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 6.6K bytes - Viewed (0) -
cmd/xl-storage-format-v2.go
} if minor >= 2 { if crc, nbuf, err := msgp.ReadUint32Bytes(buf); err == nil { // Read metadata CRC (added in v2) buf = nbuf if got := uint32(xxhash.Sum64(v)); got != crc { return fmt.Errorf("xlMetaV2.Load version(%d), CRC mismatch, want 0x%x, got 0x%x", minor, crc, got) } } else { return fmt.Errorf("xlMetaV2.Load version(%d), loading CRC: %w", minor, err) } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 65.6K bytes - Viewed (1) -
cmd/erasure-multipart.go
hash.ChecksumCRC64NVME.String(): part.ChecksumCRC64NVME, } if wantCS[checksumType.String()] != crc { return oi, InvalidPart{ PartNumber: part.PartNumber, ExpETag: wantCS[checksumType.String()], GotETag: crc, } } cs := hash.NewChecksumString(checksumType.String(), crc) if !cs.Valid() { return oi, InvalidPart{ PartNumber: part.PartNumber, } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Sep 07 16:13:09 UTC 2025 - 47.3K bytes - Viewed (0) -
cmd/erasure-sets_test.go
} if sipHashElement := hashKey("UNKNOWN", "This will fail", 0, testUUID); sipHashElement != -1 { t.Errorf("Test: Expected \"-1\" but got \"%v\"", sipHashElement) } } // TestCrcHashMod - test crc hash. func TestCrcHashMod(t *testing.T) { testCases := []struct { objectName string crcHash int }{ // cases which should pass the test. // passing in valid object name. {"object", 28},
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 6.8K bytes - Viewed (0) -
cmd/xl-storage-meta-inline.go
// First version to carry data. return buf } // Skip header _, metaBuf, err = msgp.ReadBytesZC(metaBuf) if err != nil { storageLogIf(GlobalContext, err) return buf } // Skip CRC if maj > 1 || minor >= 2 { _, metaBuf, err = msgp.ReadUint32Bytes(metaBuf) storageLogIf(GlobalContext, err) } // = input - current pos ends := len(buf) - len(metaBuf) if ends > len(buf) {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 9.4K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
return nil, err } case 1, 2: v, b, err := msgp.ReadBytesZC(b) if err != nil { return nil, err } if _, nbuf, err := msgp.ReadUint32Bytes(b); err == nil { // Read metadata CRC (added in v2, ignore if not found) b = nbuf } _, err = msgp.CopyToJSON(buf, bytes.NewReader(v)) if err != nil { return nil, err } data = b case 3:
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 40.3K bytes - Viewed (0) -
guava/src/com/google/common/hash/Hashing.java
return javaUtilZip; } catch (ClassNotFoundException runningUnderJava8) { return ABSTRACT_HASH_FUNCTION; } } } /** * Returns a hash function implementing the CRC-32 checksum algorithm (32 hash bits). * * <p>To get the {@code long} value equivalent to {@link Checksum#getValue()} for a {@code * HashCode} produced by this function, use {@link HashCode#padToLong()}. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 22:06:57 UTC 2025 - 31.1K bytes - Viewed (0) -
cmd/bucket-replication.go
ObjectLockLegalHoldTimestamp = "objectlock-legalhold-timestamp" // ReplicationSsecChecksumHeader - the encrypted checksum of the SSE-C encrypted object. ReplicationSsecChecksumHeader = "X-Minio-Replication-Ssec-Crc" ) // gets replication config associated to a given bucket name. func getReplicationConfig(ctx context.Context, bucketName string) (rc *replication.Config, err error) {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 118K bytes - Viewed (0) -
cmd/object-handlers.go
dstOpts.WantChecksum = nil } } else { // S3: All copied objects without checksums and specified destination checksum algorithms // automatically gain a CRC-64NVME checksum algorithm. dstOpts.WantServerSideChecksumType = hash.ChecksumCRC64NVME srcInfo.Reader.AddServerSideChecksumHasher(dstOpts.WantServerSideChecksumType) dstOpts.WantChecksum = nil } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Sep 07 16:13:09 UTC 2025 - 120.6K bytes - Viewed (0)