Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 181 for readBytesWireFormat (0.07 sec)

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

                }
            }
            return start - dstIndex;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
            for (int i = 0; i < this.unlocks.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComBlankResponseTest.java

        }
    
        /**
         * Test for the readBytesWireFormat method.
         * It should always return 0.
         */
        @Test
        void testReadBytesWireFormat() {
            assertEquals(0, response.readBytesWireFormat(buffer, 0), "readBytesWireFormat should return 0");
        }
    
        /**
         * Test for the toString method.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComTreeDisconnectTest.java

        }
    
        /**
         * Test the readBytesWireFormat method.
         */
        @Test
        void testReadBytesWireFormat() {
            // Given
            SmbComTreeDisconnect smbComTreeDisconnect = new SmbComTreeDisconnect();
            byte[] buffer = new byte[10];
    
            // When
            int result = smbComTreeDisconnect.readBytesWireFormat(buffer, 0);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoRequest.java

            }
            return dstIndex - start;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java

            return 0;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            }
        }
    
        @Nested
        @DisplayName("ReadBytesWireFormat Tests")
        class ReadBytesWireFormatTests {
    
            @Test
            @DisplayName("Should always return 0 for readBytesWireFormat")
            void testReadBytesWireFormat() {
                byte[] buffer = new byte[1024];
                int result = request.readBytesWireFormat(buffer, 0);
                assertEquals(0, result);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

                int bufferIndex = 100;
    
                // Write structure size = 4
                SMBUtil.writeInt2(4, buffer, bufferIndex);
    
                int result = echoResponse.readBytesWireFormat(buffer, bufferIndex);
    
                assertEquals(0, result);
            }
    
            @Test
            @DisplayName("Should throw exception for invalid structure size")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupResponse.java

         *
         * @throws SMBProtocolDecodingException
         *             if the response data is malformed
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.8K bytes
    - Viewed (1)
  9. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java

            assertEquals(0, result);
        }
    
        /**
         * Test readBytesWireFormat method.
         */
        @Test
        void testReadBytesWireFormat() {
            smbComOpenAndX = new SmbComOpenAndX(fileName, access, 0, andx);
            byte[] buffer = new byte[0];
            int result = smbComOpenAndX.readBytesWireFormat(buffer, 0);
            assertEquals(0, result);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top