- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 906 for buffer3 (0.24 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
void testMultipleReadsUpdateOffset() { byte[] buffer1 = new byte[] { 0x10, 0x00, 0x00, 0x00 }; // 16 byte[] buffer2 = new byte[] { 0x20, 0x00, 0x00, 0x00 }; // 32 response.readParameterWordsWireFormat(buffer1, 0); assertEquals(16L, response.getOffset(), "First read should set offset to 16"); response.readParameterWordsWireFormat(buffer2, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
} @Test void testReadSetupWireFormat() { byte[] buffer = new byte[100]; int result = response.readSetupWireFormat(buffer, 0, 100); assertEquals(0, result); } @Test void testReadParametersWireFormat() { byte[] buffer = new byte[100]; int result = response.readParametersWireFormat(buffer, 0, 100); assertEquals(0, result); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
// Encode multiple times to verify consistency byte[] buffer1 = new byte[8]; byte[] buffer2 = new byte[8]; int bytes1 = info.encode(buffer1, 0); int bytes2 = info.encode(buffer2, 0); assertEquals(8, bytes1); assertEquals(8, bytes2); assertArrayEquals(buffer1, buffer2); } @Test @DisplayName("Test multiple decode operations")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
NdrShort ndrShort = new NdrShort(50); NdrBuffer buffer1 = mock(NdrBuffer.class); NdrBuffer buffer2 = mock(NdrBuffer.class); when(buffer2.dec_ndr_short()).thenReturn(75); // When: Performing multiple operations ndrShort.encode(buffer1); ndrShort.decode(buffer2); // Then: Should handle both operations correctly
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt
internal fun idnToAscii(host: String): String? { val bufferA = Buffer().writeUtf8(host) val bufferB = Buffer() // 1. Map, from bufferA to bufferB. while (!bufferA.exhausted()) { val codePoint = bufferA.readUtf8CodePoint() if (!IDNA_MAPPING_TABLE.map(codePoint, bufferB)) return null } // 2. Normalize, from bufferB to bufferA. val normalized = normalizeNfc(bufferB.readUtf8()) bufferA.writeUtf8(normalized)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
@Test @DisplayName("Should not modify buffer during write") void testWriteDoesNotModifyBuffer() { byte[] buffer = new byte[64]; Arrays.fill(buffer, (byte) 0xAA); byte[] originalBuffer = buffer.clone(); notification.writeBytesWireFormat(buffer, 0); assertArrayEquals(originalBuffer, buffer); } } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java
); when(mockNdrBuffer.dec_ndr_small()).thenReturn(4, 5); when(mockDeferredNdrBuffer.dec_ndr_long()).thenReturn(5, 0, 5, // name buffer: buffers, 0, bufferl 6, 0, 6, // dns_domain buffer: buffers, 0, bufferl 7, 0, 7 // dns_forest buffer: buffers, 0, bufferl ); when(mockDeferredNdrBuffer.dec_ndr_short()).thenReturn((int) (short) 'a', (int) (int) (short) 'b', (int) (int) (short) 'c',
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 60.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
assertThrows(Exception.class, () -> new Pac(pacData, keys)); } @Test void testZeroBufferCount() throws IOException { // Test PAC with zero buffers (missing required buffers) ByteArrayOutputStream baos = new ByteArrayOutputStream(); writeLittleEndianInt(baos, 0); // bufferCount = 0 writeLittleEndianInt(baos, PacConstants.PAC_VERSION); // valid version
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/BufferCacheImpl.java
*/ public BufferCacheImpl(final Configuration cfg) { this(cfg.getBufferCacheSize(), cfg.getMaximumBufferSize()); } /** * Constructs a buffer cache with specified parameters. * * @param maxBuffers the maximum number of buffers to cache * @param maxSize the size of each buffer in bytes * */ public BufferCacheImpl(final int maxBuffers, final int maxSize) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt
private lateinit var server: MockWebServer private lateinit var client: OkHttpClient @BeforeEach fun setUp() { // Sockets on some platforms can have large buffers that mean writes do not block when // required. These socket factories explicitly set the buffer sizes on sockets created. server = MockWebServer() server.serverSocketFactory = object : DelegatingServerSocketFactory(getDefault()) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:30:11 UTC 2025 - 6.1K bytes - Viewed (0)