- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 341 for READ (0.57 sec)
-
src/main/java/jcifs/smb/SmbFileInputStream.java
* Optimized for better performance with larger read sizes and reduced round trips. * * @param b the buffer to read into * @param off the offset in the buffer to start writing * @param len the maximum number of bytes to read * @return number of bytes read * * @throws IOException * if a network error occurs */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
class IntegrationTests { @Test @DisplayName("Should handle complete read-write cycle") void testCompleteReadWriteCycle() throws SMBProtocolDecodingException { // Given byte[] writeBuffer = new byte[100]; byte[] readBuffer = new byte[100]; // Prepare valid read buffer SMBUtil.writeInt2(4, readBuffer, 10);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
Mockito.mockConstruction(SmbFileInputStream.class, (mock, context) -> { // Mock the read method to return simple content byte[] includeContent = "192.168.1.200 INCLUDEHOST\n".getBytes(); int[] index = { 0 }; when(mock.read()).thenAnswer(inv -> { if (index[0] < includeContent.length) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java
int bytesRead = response.readParameterWordsWireFormat(buffer, 0); // The count should be read from the buffer. assertEquals(10L, response.count); // The method should return the number of bytes read. assertEquals(8, bytesRead); } /** * Test the writeParameterWordsWireFormat method. */ @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
} /** * Read error response from buffer * * @param buffer the buffer to read from * @param bufferIndex the starting index in the buffer * @return the number of bytes read * @throws SMBProtocolDecodingException if decoding fails */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
entry.updateChild("file1.txt", 1024L, 1000L, false, 0x20, 500L, 800L); entry.markComplete(); // Break lease with loss of read cache int newState = Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING; // Lost read cache directoryLeaseManager.handleDirectoryLeaseBreak(leaseKey, newState); // Cache should be invalidated assertFalse(entry.isComplete());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
} @Test @DisplayName("readBytesWireFormat returns zero bytes read") void testReadBytesWireFormat() throws SMBProtocolDecodingException { byte[] buffer = new byte[10]; assertEquals(0, response.readBytesWireFormat(buffer, 0), "Should read 0 bytes"); } @Test @DisplayName("readBytesWireFormat with null buffer - returns zero")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ReaderUtil.java
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
// First read response.readDataWireFormat(buffer1, 0, firstData.length); byte[] firstResult = new byte[firstData.length]; System.arraycopy(outputBuffer, 0, firstResult, 0, firstData.length); assertArrayEquals(firstData, firstResult); // Second read (should overwrite) response.readDataWireFormat(buffer2, 0, secondData.length);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java
assertEquals(customLevel, infoLevel.getInt(resp)); } } @Nested @DisplayName("Wire Format Tests") class WireFormatTests { @Test @DisplayName("Should read parameters wire format") void testReadParametersWireFormat() { byte[] buffer = new byte[10]; int result = response.readParametersWireFormat(buffer, 0, 2); assertEquals(2, result);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0)