- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 159 for allocates (0.05 sec)
-
src/bytes/bytes_test.go
old = []byte(tt.old) new = []byte(tt.new) ) if !asan.Enabled { allocs := testing.AllocsPerRun(10, func() { Replace(in, old, new, tt.n) }) if allocs > 1 { t.Errorf("Replace(%q, %q, %q, %d) allocates %.2f objects", tt.in, tt.old, tt.new, tt.n, allocs) } } in = append(in, "<spare>"...) in = in[:len(tt.in)] out := Replace(in, old, new, tt.n) if s := string(out); s != tt.out {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jul 28 18:13:58 UTC 2025 - 62.9K bytes - Viewed (0) -
doc/go_spec.html
storage for a named variable. Calling the built-in function <a href="#Allocation"><code>new</code></a> or taking the address of a <a href="#Composite_literals">composite literal</a> allocates storage for a variable at run time. Such an anonymous variable is referred to via a (possibly implicit) <a href="#Address_operators">pointer indirection</a>. </p> <p>
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue May 06 19:12:15 UTC 2025 - 286.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaBufferManager.java
this.totalAllocated = new AtomicLong(); this.totalReleased = new AtomicLong(); // Pre-allocate buffer pool initializeBufferPool(); } /** * Initialize the buffer pool with pre-allocated regions */ private void initializeBufferPool() { // Allocate send buffers for (int i = 0; i < initialSendBuffers; i++) { try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
} }; // When BufferCache.getBuffers(req, rsp); // Then assertNotNull(req.txn_buf, "Request buffer should be allocated"); assertNotNull(rsp.txn_buf, "Response buffer should be allocated"); assertEquals(SmbComTransaction.TRANSACTION_BUF_SIZE, req.txn_buf.length, "Request buffer should have correct size");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K 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/internal/smb2/rdma/RdmaIntegrationTest.java
assertNotNull(sendBuffer, "Send buffer should be allocated"); assertTrue(sendBuffer.getSize() >= 8192, "Send buffer should be at least 8KB"); RdmaMemoryRegion recvBuffer = bufferManager.getReceiveRegion(); assertNotNull(recvBuffer, "Receive buffer should be allocated"); assertTrue(recvBuffer.getSize() > 0, "Receive buffer should have positive size");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 13.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt
when { logger.isLoggable(Level.FINE) -> Throwable(closer) // These are expensive to allocate. else -> null } open fun logCloseableLeak( message: String, stackTrace: Any?, ) { var logMessage = message if (stackTrace == null) { logMessage += " To see where this was allocated, set the OkHttpClient logger level to " +
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 8.1K bytes - Viewed (0) -
src/bytes/buffer.go
// total space allocated for the buffer's data. func (b *Buffer) Cap() int { return cap(b.buf) } // Available returns how many bytes are unused in the buffer. func (b *Buffer) Available() int { return cap(b.buf) - len(b.buf) } // Truncate discards all but the first n unread bytes from the buffer // but continues to use the same allocated storage.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 19 17:38:56 UTC 2025 - 16K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
* array is that of the specified array. The returned array elements are in no particular order. * If the queue fits in the specified array, it is returned therein. Otherwise, a new array is * allocated with the runtime type of the specified array and the size of this queue. * * <p>If this queue fits in the specified array with room to spare (i.e., the array has more
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 18.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
* type of the returned array is that of the specified array. If the queue fits in the specified * array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the * specified array and the size of this queue. * * <p>If this queue fits in the specified array with room to spare (i.e., the array has more
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 22.4K bytes - Viewed (0)