Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 108 for readDataWireFormat (0.09 sec)

  1. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformation.java

        }
    
        @Override
        protected int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        protected int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2FindNext2.java

            return 0;
        }
    
        @Override
        int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test readDataWireFormat returns zero")
        void testReadDataWireFormat() {
            querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, 0x1234, OWNER_SECURITY_INFORMATION);
            byte[] buffer = new byte[100];
    
            int result = querySecurityDesc.readDataWireFormat(buffer, 10, 50);
    
            assertEquals(0, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

            byte[] buf = new byte[10];
            assertEquals(0, cmd.readSetupWireFormat(buf, 0, buf.length));
            assertEquals(0, cmd.readParametersWireFormat(buf, 0, buf.length));
            assertEquals(0, cmd.readDataWireFormat(buf, 0, buf.length));
        }
    
        @ParameterizedTest
        @CsvSource({ "0, 0", // all zeros
                "-1, 2147483647", // negative fid, max positive security
                "12345, 999" // arbitrary numbers
        })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponse.java

            SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            setStatus(SMBUtil.readInt2(buffer, bufferIndex));
            return 6;
        }
    
        @Override
        protected int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        public String toString() {
            return ("TransPeekNamedPipeResponse[" + super.toString() + "]");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

        }
    
        @Test
        @DisplayName("Test readDataWireFormat returns 0")
        void testReadDataWireFormat() {
            // Arrange
            TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH);
            byte[] buffer = new byte[10];
    
            // Act
            int bytesRead = trans.readDataWireFormat(buffer, 0, 10);
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponse.java

        int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            // observed two zero bytes here with at least win98
            return 2;
        }
    
        @Override
        int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return switch (informationLevel) {
            case SMB_QUERY_FILE_BASIC_INFO -> readSmbQueryFileBasicInfoWireFormat(buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/TransWaitNamedPipeResponse.java

            return 0;
        }
    
        @Override
        int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        public String toString() {
            return ("TransWaitNamedPipeResponse[" + super.toString() + "]");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/TransCallNamedPipeResponse.java

            return 0;
        }
    
        @Override
        int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            if (pipe.pipeIn != null) {
                final TransactNamedPipeInputStream in = (TransactNamedPipeInputStream) pipe.pipeIn;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java

            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test readDataWireFormat returns zero")
        void testReadDataWireFormat() {
            notifyChange = new NtTransNotifyChange(mockConfig, 0x1234, FILE_NOTIFY_CHANGE_FILE_NAME, false);
            byte[] buffer = new byte[100];
    
            int result = notifyChange.readDataWireFormat(buffer, 10, 50);
    
            assertEquals(0, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.4K bytes
    - Viewed (0)
Back to top