Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 376 for readn (0.3 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComReadAndX.java

    /**
     * SMB1 Read AndX request message.
     *
     * This command is used to read data from a file that has been
     * previously opened with an Open command.
     */
    public class SmbComReadAndX extends AndXServerMessageBlock {
    
        private long offset;
        private int fid;
        int openTimeout;
        int maxCount, minCount, remaining;
    
        /**
         * Constructs a Read AndX request.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

            }
            bufferIndex += 4;
    
            // Read signature
            System.arraycopy(buffer, bufferIndex, header.signature, 0, 16);
            bufferIndex += 16;
    
            // Read nonce
            System.arraycopy(buffer, bufferIndex, header.nonce, 0, 16);
            bufferIndex += 16;
    
            // Read original message size
            header.originalMessageSize = SMBUtil.readInt4(buffer, bufferIndex);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStreamTest.java

            // Read some data
            assertEquals('T', stream.read());
    
            // Close should be ignored
            stream.close();
    
            // Should still be able to read
            assertEquals('e', stream.read());
            assertEquals('s', stream.read());
            assertEquals('t', stream.read());
        }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbFile.java

         * Tests to see if the file this <code>SmbFile</code> represents can be
         * read. Because any file, directory, or other resource can be read if it
         * exists, this method simply calls the <code>exists</code> method.
         *
         * @return <code>true</code> if the file is read-only
         * @throws SmbException if an error occurs while checking read permissions
         */
    
        public boolean canRead() throws SmbException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaProviderTest.java

            assertTrue(region.hasAccess(RdmaAccess.LOCAL_READ), "Should have local read access");
            assertTrue(region.hasAccess(RdmaAccess.LOCAL_WRITE), "Should have local write access");
            assertFalse(region.hasAccess(RdmaAccess.REMOTE_READ), "Should not have remote read access");
    
            // Test cleanup
            region.close();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TemporaryFileInputStreamTest.java

            }
    
            // Read from TemporaryFileInputStream
            try (TemporaryFileInputStream stream = new TemporaryFileInputStream(tempFile)) {
                assertEquals('T', stream.read());
                assertEquals('e', stream.read());
                assertEquals('s', stream.read());
                assertEquals('t', stream.read());
                assertEquals(' ', stream.read());
                assertEquals('d', stream.read());
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                byte[] buf = new byte[16];
    
                // Skip advances internal file pointer; next read should use this offset
                in.skip(2);
    
                // Act
                int n = in.readDirect(buf, 0, 5);
    
                // Assert
                assertEquals(3, n, "Should report bytes read from SMB2 response");
    
                // Verify the request offset equals the skip value (2)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

            }
        }
    
        @Nested
        @DisplayName("Multiple Read Operations Tests")
        class MultipleReadOperationsTests {
    
            @Test
            @DisplayName("Should update fields correctly on subsequent reads")
            void testMultipleReads() throws SMBProtocolDecodingException {
                // First read
                byte[] buffer1 = new byte[60];
                SMBUtil.writeInt2(60, buffer1, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java

                    int read = socketChannel.read(tempBuffer);
                    if (read < 0) {
                        break;
                    }
                    totalRead += read;
                }
    
                tempBuffer.flip();
                buffer.put(tempBuffer);
    
                log.debug("TCP RDMA read completed: {} bytes", totalRead);
                return totalRead;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java

        /**
         * Test for the readSetupWireFormat method.
         * It should always return 0.
         */
        @Test
        void testReadSetupWireFormat() {
            byte[] buffer = new byte[10];
            // The method should not read anything and return 0
            assertEquals(0, response.readSetupWireFormat(buffer, 0, 10), "readSetupWireFormat should return 0.");
        }
    
        /**
         * Test for the readParametersWireFormat method.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
Back to top