Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 181 for readBytesWireFormat (0.11 sec)

  1. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.8K bytes
    - Viewed (1)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java

     * provided purely to expose protected state and to satisfy the abstract
     * method contract.  The tests focus on public API behaviour and the
     * parsing logic in {@code readParameterWordsWireFormat} and
     * {@code readBytesWireFormat}.
     */
    public class SmbComTransactionResponseTest {
        /** A minimal concrete subclass for testing */
        private static class DummyResponse extends SmbComTransactionResponse {
            DummyResponse() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/jcifs/internal/smb2/create/Smb2CloseRequest.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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java

        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 4, -3 })
        @DisplayName("readBytesWireFormat always returns 0")
        void readBytesWireFormatReturnsZero(int index) {
            SmbComLogoffAndX msg = new SmbComLogoffAndX(null);
            assertEquals(0, msg.readBytesWireFormat(new byte[15], index));
            assertEquals(0, msg.readBytesWireFormat(null, index));
        }
    
        @Test
        @DisplayName("toString formats correctly")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java

         * {@inheritDoc}
         *
         * @throws SMBProtocolDecodingException if an error occurs during decoding
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            System.arraycopy(key, 0, buffer, bufferIndex, key.length);
            bufferIndex += key.length;
            System.arraycopy(domainBytes, 0, buffer, bufferIndex, domainBytes.length);
    
            response.readBytesWireFormat(buffer, 0);
    
            assertArrayEquals(key, response.getServerData().encryptionKey);
            assertEquals("DOMAIN", response.getServerData().oemDomainName);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/Smb2EchoResponse.java

            return 0;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java

        }
    
        @Test
        @DisplayName("readBytesWireFormat returns 0 and tolerates null buffer")
        void readBytesWireFormat_returnsZeroEvenWithNull() {
            // Arrange
            Smb2LogoffRequest req = newRequest();
    
            // Act
            int resultWithNull = req.readBytesWireFormat(null, 0);
            int resultWithData = req.readBytesWireFormat(new byte[] { 1, 2, 3 }, 1);
    
            // Assert
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top