Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            System.arraycopy(fileNameBytes, 0, buffer, notifyOffset + 12, fileNameBytes.length);
    
            // When
            int bytesRead = response.readBytesWireFormat(buffer, offset);
    
            // Then
            assertTrue(bytesRead > 0);
            List<FileNotifyInformation> notifications = response.getNotifyInformation();
            assertEquals(1, notifications.size());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.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
    - 22.4K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.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 23 05:11:12 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

        }
    
        @Test
        @DisplayName("readBytesWireFormat is a no‑op and returns zero")
        void testReadBytesWireFormatNoop() {
            byte[] buffer = new byte[10];
            int used = cmd.readBytesWireFormat(buffer, 0);
            assertEquals(0, used, "readBytesWireFormat is unimplemented and must return 0");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

        }
    
        /**
         * Test the readBytesWireFormat method.
         * This method should do nothing and return 0.
         */
        @Test
        void testReadBytesWireFormat() {
            byte[] buffer = new byte[10];
            int bufferIndex = 0;
            // The method should return 0 as it reads no bytes
            int result = smbComNegotiate.readBytesWireFormat(buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4K bytes
    - Viewed (0)
Back to top