- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 376 for readn (4.08 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java
buffer[7] = 0x00; // lastNameOffset (2 bytes) buffer[8] = 0x10; buffer[9] = 0x00; int result = response.readParametersWireFormat(buffer, 0, 10); // Should read 10 bytes assertEquals(10, result); // Check the values were parsed correctly assertEquals(1, response.getSid()); assertEquals(5, response.getNumEntries());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
assertEquals("Expected structureSize = 17", exception.getMessage()); } @Test @DisplayName("Should read valid structure with minimal test") void testReadBytesWireFormatBasicStructure() throws Exception { // Given - Create a complete SMB2 message with header byte[] buffer = new byte[512];
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
// When & Then - Will throw SMBProtocolDecodingException when trying to read beyond buffer assertThrows(ArrayIndexOutOfBoundsException.class, () -> { response.readBytesWireFormat(buffer, offset); }); } @DisplayName("Should read at different offsets correctly") @ParameterizedTest @ValueSource(ints = { 0, 10, 50, 100, 200 })Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/FilenameExtractor.java
* * <p>Note: The input stream is validated for consistency with the Extractor interface, * but is not actually read. Only the resource name from the parameters is used.</p> * * @param in The input stream (validated but not read) * @param params The parameters map, expected to contain ExtractData.RESOURCE_NAME_KEYRegistered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Nov 19 08:55:01 UTC 2025 - 2.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java
} } /** * Performs RDMA read operation. * * @param buffer the buffer to read into * @param remoteAddress remote memory address * @param remoteKey remote access key * @param length number of bytes to read * @return number of bytes read * @throws IOException if operation fails */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbEndOfFileException.java
*/ package jcifs.smb; /** * Exception thrown when reaching the end of an SMB file. * * This exception is thrown during read operations when * attempting to read beyond the end of a file. * * @author mbechler */ public class SmbEndOfFileException extends SmbException { /** * */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/LeaseManager.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
writeInt4(500, buffer, 12); // free writeInt2(512, buffer, 16); // bytesPerSect int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length); assertEquals(20, bytesRead, "Should read 20 bytes"); assertNotNull(response.info, "Info object should not be null"); assertTrue(response.info instanceof Trans2QueryFSInformationResponse.SmbInfoAllocation, "Info should be of type SmbInfoAllocation");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
request.setImpersonationLevel(Smb2CreateRequest.SMB2_IMPERSONATION_LEVEL_DELEGATE); byte[] buffer = new byte[1024]; request.writeBytesWireFormat(buffer, 0); // Read impersonation level from buffer (offset 4-7) int impLevel = (buffer[4] & 0xFF) | ((buffer[5] & 0xFF) << 8) | ((buffer[6] & 0xFF) << 16) | ((buffer[7] & 0xFF) << 24);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java
byte[] buffer = new byte[256]; int read = trans2QueryFSInfo.readSetupWireFormat(buffer, 0, buffer.length); // Should always return 0 assertEquals(0, read); } @Test @DisplayName("Test readParametersWireFormat returns 0") void testReadParametersWireFormat() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.9K bytes - Viewed (0)