- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 200 for calculate (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
cmd/bitrot-whole.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "context" "hash" "io" ) // Implementation to calculate bitrot for the whole file. type wholeBitrotWriter struct { disk StorageAPI volume string filePath string shardSize int64 // This is the shard size of the erasure logic hash.Hash // For bitrot hash
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Jan 31 02:11:45 GMT 2024 - 2.7K bytes - Click Count (0) -
cmd/object-api-common.go
// Block size used for all internal operations version 1. // TLDR.. // Not used anymore xl.meta captures the right blockSize // so blockSizeV2 should be used for all future purposes. // this value is kept here to calculate the max API // requests based on RAM size for existing content. blockSizeV1 = 10 * humanize.MiByte // Block size used in erasure coding version 2. blockSizeV2 = 1 * humanize.MiByte // Buckets meta prefix.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Nov 21 01:09:35 GMT 2023 - 2.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.5K bytes - Click Count (0) -
ci/official/upload.sh
# This script uploads all staged artifacts from all previous builds in the same # job chain to GCS and PyPI. source "${BASH_SOURCE%/*}/utilities/setup.sh" # Calculate the version number for choosing the final directory name. This adds # "-devYYYYMMDD" to the end of the version string for nightly builds. if [[ "$TFCI_NIGHTLY_UPDATE_VERSION_ENABLE" == 1 ]]; thenCreated: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Tue Mar 04 22:39:12 GMT 2025 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
} } @Nested @DisplayName("Capacity and Free Space Calculation Tests") class CapacityCalculationTests { @Test @DisplayName("Should calculate capacity correctly") void shouldCalculateCapacityCorrectly() throws SMBProtocolDecodingException { // Given long alloc = 1024L; int sectPerAlloc = 8;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 30.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SSPContext.java
* @return whether this mechanisms supports integrity */ boolean supportsIntegrity(); /** * 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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
// When & Then assertEquals(Long.MIN_VALUE, allocInfo.getCapacity()); assertEquals(Long.MIN_VALUE, allocInfo.getFree()); } @Test @DisplayName("Should calculate used space correctly") void shouldCalculateUsedSpaceCorrectly() { // Given long capacity = 1024L * 1024L * 1024L * 100L; // 100GB long free = 1024L * 1024L * 1024L * 40L; // 40GB
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java
void testWriteBytesWireFormatHappy() throws UnsupportedEncodingException { byte[] buffer = new byte[50]; int used = cmd.writeBytesWireFormat(buffer, 0); // Calculate expected size: 1 byte for command + string bytes + 1 null terminator byte[] expectedString = "testfile.txt".getBytes("windows-1252");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
assertEquals(0, decoded.getHashAlgos().length); assertEquals(0, decoded.getSalt().length); } @Test @DisplayName("Should calculate size correctly") void testSizeCalculation() { // Test with various combinations context = new PreauthIntegrityNegotiateContext(mockConfig, new int[3], new byte[32]);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/MemoryUtil.java
final long totalBytes = runtime.totalMemory(); return totalBytes - freeBytes; } /** * Estimates the size of an object in bytes. * * @param obj the object to calculate size for * @return estimated size in bytes */ public static long sizeOf(final Object obj) { if (obj == null) { return 0L; } if (obj instanceof String) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 5.3K bytes - Click Count (0)