Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 108 for readDataWireFormat (0.09 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java

        }
    
        @Test
        @DisplayName("Test readDataWireFormat returns 0")
        void testReadDataWireFormat() {
            // Given
            transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_DATA, 0, TEST_DATA.length);
            byte[] buffer = new byte[10];
    
            // When
            int bytesRead = transCallNamedPipe.readDataWireFormat(buffer, 0, buffer.length);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponse.java

            return 0;
        }
    
        @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() {
            return ("TransWaitNamedPipeResponse[" + super.toString() + "]");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDescResponse.java

        @Override
        int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            length = readInt4(buffer, bufferIndex);
            return 4;
        }
    
        @Override
        int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) {
            final int start = bufferIndex;
    
            if (errorCode != 0) {
                return 4;
            }
    
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/TransTransactNamedPipe.java

            return pipeDataLen;
        }
    
        @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
    - 2.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

            assertEquals(0, read);
        }
    
        @Test
        @DisplayName("Test readDataWireFormat returns 0")
        void testReadDataWireFormat() {
            trans2QueryFSInfo = new Trans2QueryFSInformation(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            byte[] buffer = new byte[256];
            int read = trans2QueryFSInfo.readDataWireFormat(buffer, 0, buffer.length);
    
            // Should always return 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

                this.dataDone = true;
            }
    
            if (this.parametersDone && this.dataDone) {
                readParametersWireFormat(this.txn_buf, this.bufParameterStart, this.totalParameterCount);
                readDataWireFormat(this.txn_buf, this.bufDataStart, this.totalDataCount);
                this.hasMore = false;
            }
    
            return this.pad + this.parameterCount + this.pad1 + this.dataCount;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java

            // Then
            assertEquals(0, result);
        }
    
        @Test
        void testReadDataWireFormat() {
            // When
            int result = trans2SetFileInformation.readDataWireFormat(new byte[0], 0, 0);
    
            // Then
            assertEquals(0, result);
        }
    
        @Test
        void testToString() {
            // When
            String result = trans2SetFileInformation.toString();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            assertEquals(0, read);
        }
    
        @Test
        @DisplayName("Test readDataWireFormat returns 0")
        void testReadDataWireFormat() {
            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test", "*.*", 0x16, 10, 1024);
    
            byte[] buffer = new byte[100];
            int read = trans2FindFirst2.readDataWireFormat(buffer, 0, 100);
    
            assertEquals(0, read);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java

            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("readDataWireFormat should return 0")
        void testReadDataWireFormat() {
            // Arrange
            transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, testPipeName);
            byte[] buffer = new byte[10];
    
            // Act
            int result = transWaitNamedPipe.readDataWireFormat(buffer, 0, 10);
    
            // Assert
            assertEquals(0, result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponse.java

            return 0;
        }
    
        @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) throws SMBProtocolDecodingException {
            if (len > this.outputBuffer.length) {
                throw new SMBProtocolDecodingException("Payload exceeds buffer size");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
Back to top