- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 248 for calculate (0.09 seconds)
-
docs/debugging/reorder-disks/main.go
if err != nil { log.Fatal(err) } setSize := len(format.XL.Sets[0]) expectedDisksName := make(map[string]string) actualDisksName := make(map[string]string) // Calculate the set/disk index for _, disk := range localDisks { expectedDisksName[fmt.Sprintf("%d-%d", disk.index/setSize, disk.index%setSize)] = disk.path format, err := getFormatJSON(disk.path) if err != nil {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri May 24 23:05:23 GMT 2024 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SSPContextTest.java
assertArrayEquals(new ASN1ObjectIdentifier[] { mech1, mech2 }, ctx.getSupportedMechs(), "supported mechs"); // MIC roundtrip: calculate then verify byte[] data = new byte[] { 10, 20, 30 }; byte[] mic = ctx.calculateMIC(data); assertNotNull(mic); ctx.verifyMIC(data, mic); // should not throw }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Dec 25 02:13:14 GMT 2025 - 28K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/MemoryUtilTest.java
complexMap.put("numbers", Arrays.asList(1, 2, 3)); complexMap.put("nested", Maps.map("inner", "value").$()); complexMap.put("array", new String[] { "array1", "array2" }); // Calculate expected size based on actual behavior long actualSize = MemoryUtil.sizeOf(complexMap); assertEquals(689L, actualSize); } @Test public void test_getUsedMemory_variations() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/WebSocket.kt
/** * Returns the size in bytes of all messages enqueued to be transmitted to the server. This * doesn't include framing overhead. If compression is enabled, uncompressed messages size * is used to calculate this value. It also doesn't include any bytes buffered by the operating * system or network intermediaries. This method returns 0 if no messages are waiting in the
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:45:14 GMT 2026 - 6.1K bytes - Click Count (0) -
internal/s3select/sql/aggregation.go
// them if they could be an ancestor of an // aggregation. } return nil } // getAggregate() implementation for each AST node follows. This is // called after calling aggregateRow() on each input row, to calculate // the final aggregate result. func (e *FuncExpr) getAggregate() (*Value, error) { switch e.getFunctionName() { case aggFnCount: return FromInt(e.aggregate.runningCount), nil case aggFnAvg:
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sat Dec 23 07:19:11 GMT 2023 - 7.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
String comment = "Test server"; // Set converter value first setConverter(response, 0); // Set number of entries setNumEntries(response, 1); // Calculate buffer size int serverNameSize = 16; // Fixed field size int versionSize = 2; int typeSize = 4; int offsetSize = 4; int commentSize = comment.length() + 1;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 25.4K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/AbstractBaseGraph.java
* * @author James Sexton * @param <N> Node parameter type */ abstract class AbstractBaseGraph<N> implements BaseGraph<N> { /** * Returns the number of edges in this graph; used to calculate the size of {@link Graph#edges()}. * This implementation requires O(|N|) time. Classes extending this one may manually keep track of * the number of edges as the graph is updated, and override this method for better performance.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 07 15:57:03 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
// Then assertNotNull(response); assertTrue(response instanceof Smb2ChangeNotifyResponse); } @Test @DisplayName("Should calculate correct size") void testSize() { // When int size = request.size(); // Then // Size should be aligned to 8 bytes: SMB2_HEADER_LENGTH + 32Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/Kerb5Context.java
try { return this.gssContext.getMIC(data, 0, data.length, new MessageProp(false)); } catch (GSSException e) { throw new CIFSException("Failed to calculate MIC", e); } } /** * {@inheritDoc} * * @see jcifs.smb.SSPContext#verifyMIC(byte[], byte[]) */ @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13.5K bytes - Click Count (1)