- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 287 for allocation (0.07 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Protocol.kt
* * @throws IOException if `protocol` is unknown. */ @JvmStatic @Throws(IOException::class) fun get(protocol: String): Protocol { // Unroll the loop over values() to save an allocation. @Suppress("DEPRECATION") return when (protocol) { HTTP_1_0.protocol -> HTTP_1_0 HTTP_1_1.protocol -> HTTP_1_1 H2_PRIOR_KNOWLEDGE.protocol -> H2_PRIOR_KNOWLEDGE
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jun 23 18:58:57 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java
// Allocate regions larger than pool buffer size to force new allocations RdmaMemoryRegion region1 = bufferManager.getSendRegion(131072); // 128KB > 64KB pool size RdmaMemoryRegion region2 = bufferManager.getSendRegion(131072); // Another large allocation assertTrue(bufferManager.getTotalAllocated() > initialAllocated, "Total allocated should increase");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/BufferCacheImplTest.java
} // Since cache cannot store, getBuffer must create a new buffer of configured size byte[] got = impl.getBuffer(); assertNotNull(got); assertEquals(8, got.length, "Allocation uses configured maximum size when cache is empty"); assertNotSame(supplied, got, "Zero-sized cache must not return the released instance"); } // Edge: releasing null must be a no-op without exceptions
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
when(response.getHeaderStart()).thenReturn(0); // Write FileFsSizeInformation data (24 bytes) SMBUtil.writeInt8(1000000, buffer, 20); // Total allocation units SMBUtil.writeInt8(500000, buffer, 28); // Available allocation units SMBUtil.writeInt4(512, buffer, 36); // Sectors per unit SMBUtil.writeInt4(4096, buffer, 40); // Bytes per sector
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
// Change Time (8 bytes) long changeTime = creationTime + 3000000L; SMBUtil.writeInt8(changeTime, buffer, bufferIndex + 32); // Allocation Size (8 bytes) SMBUtil.writeInt8(4096, buffer, bufferIndex + 40); // End of File (8 bytes) SMBUtil.writeInt8(1024, buffer, bufferIndex + 48); // File Attributes (4 bytes)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcMessage.java
* The total length of this DCERPC message */ protected int length = 0; /** * The call ID for matching requests and responses */ protected int call_id = 0; /** * The allocation hint for buffer sizing */ protected int alloc_hint = 0; /** * The result code of the DCERPC operation */ protected int result = 0; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java
* traditional {@code LinkedHashMap} implementation which stores keys and count values as map * entries, {@code ObjectCountLinkedHashMap} minimizes object allocation and reduces memory * footprint. */ @GwtCompatible @NullMarked final class ObjectCountLinkedHashMap<K extends @Nullable Object> extends ObjectCountHashMap<K> {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
assertTrue(result.contains("sectPerAlloc=" + sectPerAlloc)); assertTrue(result.contains("bytesPerSect=" + bytesPerSect)); } @Test @DisplayName("Test decode with single sector per allocation") void testDecodeWithSingleSectorPerAllocation() throws SMBProtocolDecodingException { // Prepare test data with sectPerAlloc = 1 byte[] buffer = new byte[22]; int idFileSystem = 0x11111111;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
RdmaProvider provider = RdmaProviderFactory.selectBestProvider(); try (RdmaBufferManager bufferManager = new RdmaBufferManager(provider)) { // Test basic buffer allocation RdmaMemoryRegion sendRegion = bufferManager.getSendRegion(4096); assertNotNull(sendRegion, "Send region should not be null");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 13.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumHashBiMap.java
/* * TODO: cpovirk - Pre-size the HashMap based on the number of enum values? (But *not* based on * the number of entries in the map, as that makes it easy for hostile inputs to trigger lots of * allocation—not that any program should be deserializing hostile inputs to begin with!) */ setDelegates(new EnumMap<K, V>(keyTypeOrObjectUnderJ2cl), new HashMap<V, K>()); Serialization.populateMap(this, stream); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.2K bytes - Viewed (0)