Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 181 for readBytesWireFormat (0.1 seconds)

  1. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

            assertEquals(0, fnLength);
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat returns 0")
        void testReadBytesWireFormat() {
            request = new Smb2QueryDirectoryRequest(mockConfig);
            byte[] buffer = new byte[100];
    
            int bytesRead = request.readBytesWireFormat(buffer, 0);
    
            assertEquals(0, bytesRead);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

            return dstIndex - start;
        }
    
        @Override
        int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        public String toString() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.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;
        }
    
        @Override
        public String toString() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 22.9K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

            return n;
        }
    
        @Override
        int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        public String toString() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

            return dstIndex - start;
        }
    
        @Override
        int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        abstract int writeSetupWireFormat(byte[] dst, int dstIndex);
    
        abstract int writeParametersWireFormat(byte[] dst, int dstIndex);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            bufferIndex += readHeaderWireFormat(buffer, bufferIndex);
            if (isErrorResponseStatus()) {
                bufferIndex += readErrorResponse(buffer, bufferIndex);
            } else {
                bufferIndex += readBytesWireFormat(buffer, bufferIndex);
            }
    
            this.length = bufferIndex - start;
            int len = this.length;
    
            if (this.nextCommand != 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                // When
                response.writeBytesWireFormat(dst, 0);
    
                // Then
                assertArrayEquals(originalDst, dst);
            }
        }
    
        @Nested
        @DisplayName("readBytesWireFormat Tests")
        class ReadBytesWireFormatTests {
    
            @Test
            @DisplayName("Should correctly parse valid SMB2 Close response")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 26.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

                requestWithNull.writeBytesWireFormat(buffer, 0);
            });
        }
    
        @Test
        @DisplayName("readBytesWireFormat should return 0")
        void testReadBytesWireFormat() {
            byte[] buffer = new byte[256];
            int result = request.readBytesWireFormat(buffer, 0);
    
            assertEquals(0, result);
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 10, 50, 100 })
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            bufferIndex += 2;
    
            if (this.byteCount != 0) {
                int n = readBytesWireFormat(buffer, bufferIndex);
                if ((n != this.byteCount) && log.isTraceEnabled()) {
                    log.trace("byteCount=" + this.byteCount + " but readBytesWireFormat returned " + n);
                }
                // Don't think we can rely on n being correct here. Must use byteCount.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 38.9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

            bufferIndex += 2;
    
            if (this.byteCount != 0) {
                // Read byte count for AndX message - this is correct per SMB1 specification
                final int n = readBytesWireFormat(buffer, bufferIndex);
                if (n != this.byteCount && log.isTraceEnabled()) {
                    log.trace("Short read, have " + n + ", want " + this.byteCount);
                }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.8K bytes
    - Click Count (0)
Back to Top