- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 99 for deallocate (0.05 sec)
-
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
* Test that buffer cache handles allocation when cache is full. */ @Test public void testBufferAllocationWhenCacheFull() { // Given - Allocate many buffers to potentially fill the cache List<byte[]> buffers = new ArrayList<>(); // Allocate more buffers than cache can hold for (int i = 0; i < 20; i++) { byte[] buffer = BufferCache.getBuffer();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return CharBuffer.allocate(generateInt()); } @Generates ByteBuffer generateByteBuffer() { return ByteBuffer.allocate(generateInt()); } @Generates ShortBuffer generateShortBuffer() { return ShortBuffer.allocate(generateInt()); } @Generates IntBuffer generateIntBuffer() { return IntBuffer.allocate(generateInt()); } @Generates
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 28.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java
} @Test public void testStatistics() throws Exception { long initialAllocated = bufferManager.getTotalAllocated(); // Allocate regions larger than pool buffer size to force new allocations RdmaMemoryRegion region1 = bufferManager.getSendRegion(131072); // 128KB > 64KB pool size
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java
* * <p>{@link CharStreams#copy} has type specific optimizations for various common Appendable and * Reader implementations, this compares the performance of the different options. */ // These benchmarks allocate a lot of data so use a large heap @VmOptions({"-Xms12g", "-Xmx12g", "-d64"}) @NullUnmarked public class CharStreamsCopyBenchmark { enum CopyStrategy { OLD { @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
} @Test void testWriteULong() { // Test writeULong byte[] data = new byte[4]; ByteBuffer expectedBuffer = ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN); // Test with a positive value int value = 0x12345678; NtlmMessage.writeULong(data, 0, value); expectedBuffer.putInt(0, value);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java
* {@link NtTransQuerySecurityDesc#writeParametersWireFormat(byte[], int)}. */ private static byte[] expectedParameters(int fid, int securityInformation) { ByteBuffer bb = ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN); bb.putShort((short) fid); bb.put((byte) 0x00); // Reserved bb.put((byte) 0x00); // Reserved bb.putInt(securityInformation); return bb.array();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacSignatureTest.java
class PacSignatureTest { /** * Helper method to write integer in little-endian format. */ private void writeLittleEndianInt(ByteArrayOutputStream baos, int value) { ByteBuffer buffer = ByteBuffer.allocate(4); buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putInt(value); baos.write(buffer.array(), 0, 4); } /** * Test constructor with KERB_CHECKSUM_HMAC_MD5 type. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt
assertThat(requestedHosts).containsExactly(*expectedHosts) requestedHosts.clear() } /** Allocates and returns `count` fake IPv4 addresses like [255.0.0.100, 255.0.0.101]. */ fun allocate(count: Int): List<InetAddress> { val from = nextAddress nextAddress += count return (from until nextAddress) .map { return@map InetAddress.getByAddress(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.5K bytes - Viewed (0) -
src/archive/zip/reader.go
// Since the number of directory records is not validated, it is not // safe to preallocate r.File without first checking that the specified // number of files is reasonable, since a malformed archive may // indicate it contains up to 1 << 128 - 1 files. Since each file has a // header which will be _at least_ 30 bytes we can safely preallocate // if (data size / 30) >= end.directoryRecords.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Mar 11 22:19:38 UTC 2025 - 28.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
bufferManager.releaseSendRegion(sendRegion); bufferManager.releaseReceiveRegion(recvRegion); // Allocate again to test pooling RdmaMemoryRegion newSendRegion = bufferManager.getSendRegion(4096); assertNotNull(newSendRegion, "Should be able to allocate new send region"); // Release the new region bufferManager.releaseSendRegion(newSendRegion);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 13.8K bytes - Viewed (0)