- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for calculations (0.06 sec)
-
src/main/java/org/codelibs/fess/util/MemoryUtil.java
import java.time.LocalDateTime; import java.time.ZonedDateTime; import java.util.Collection; import java.util.Date; import java.util.Map; import java.util.Objects; /** * Utility class for memory operations and size calculations. */ public final class MemoryUtil { private MemoryUtil() { } /** * Gets a formatted memory usage log string. * * @return formatted memory usage information */
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.3K bytes - Viewed (0) -
cmd/warm-backend-minio.go
if objectSize > maxMultipartPutObjectSize { err = errors.New("entity too large") return } configuredPartSize := minPartSize // Use floats for part size for all calculations to avoid // overflows during float64 to int64 conversions. partSizeFlt := float64(objectSize / maxPartsCount) partSizeFlt = math.Ceil(partSizeFlt/float64(configuredPartSize)) * float64(configuredPartSize)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Oct 31 22:10:24 UTC 2024 - 4K bytes - Viewed (1) -
src/main/java/jcifs/pac/PacMac.java
* This method implements the Microsoft variant of the Kerberos ARCFOUR-HMAC-MD5 checksum. * * @param keyusage the Kerberos key usage number for this operation * @param key the encryption key to use for MAC calculation * @param data the data to calculate the MAC for * @return the calculated MAC bytes * @throws GeneralSecurityException if cryptographic operations fail */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9K bytes - Viewed (0) -
cmd/signature-v4-utils.go
case "content-length": // Signature-V4 spec excludes Content-Length from signed headers list for signature calculation. // But some clients deviate from this rule. Hence we consider Content-Length for signature // calculation to be compatible with such clients. extractedSignedHeaders.Set(header, strconv.FormatInt(r.ContentLength, 10)) default: return nil, ErrUnsignedHeaders
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Mon Nov 25 17:10:22 UTC 2024 - 9.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
assertEquals(100, info.sectPerAlloc); assertEquals(512, info.bytesPerSect); assertEquals(1000L * 100 * 512, info.getCapacity(), "Capacity calculation should be correct"); assertEquals(500L * 100 * 512, info.getFree(), "Free space calculation should be correct"); } /** * Tests the readDataWireFormat method with the SMB_QUERY_FS_SIZE_INFO information level. */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java
assertEquals(8, emptyContext.size()); // Minimum size assertFalse(emptyContext.supportsAlgorithm(CompressionNegotiateContext.COMPRESSION_LZ77)); } @Test @DisplayName("Test context size calculation") public void testContextSize() { int expectedSize = 8 + (3 * 2); // Header + 3 algorithms * 2 bytes each assertEquals(expectedSize, context.size()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.6K bytes - Viewed (0) -
docs/debugging/s3-check-md5/main.go
log.Println("FAILED: GET", objFullPath(object), "=>", err) failedMD5 = true break } h := md5.New() if _, err := io.Copy(h, obj); err != nil { log.Println("FAILED: MD5 calculation error:", objFullPath(object), "=>", err) failedMD5 = true break } partsMD5Sum = append(partsMD5Sum, h.Sum(nil)) } if failedMD5 {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sat Feb 17 01:15:57 UTC 2024 - 6.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SSPContext.java
/** * Calculates a Message Integrity Code (MIC) for the given data. * @param data the data to calculate MIC for * @return MIC * @throws CIFSException if an error occurs calculating the MIC */ byte[] calculateMIC(byte[] data) throws CIFSException; /** * Verifies a Message Integrity Code (MIC) for the given data. * @param data the data to verify
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java
// This can occur due to padding alignment differences between size8() and pad8() if (log.isDebugEnabled()) { log.debug("Size calculation mismatch: expected {} but got {} (difference: {})", exp, actual, actual - exp); } } return len; } /** * {@inheritDoc} *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
assertNotNull(e.getMessage()); } @Test void testMockedSuccessfulParsing() throws PACDecodingException, IOException { // Test with mocked PacMac to avoid complex signature calculation try (MockedStatic<PacMac> pacMacMock = mockStatic(PacMac.class)) { // Mock the calculateMac method to return a valid checksum byte[] mockChecksum = new byte[16];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0)