Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 181 for readBytesWireFormat (0.27 sec)

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

            assertEquals(40 + bufferSize, bytesWritten);
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat returns 0")
        void testReadBytesWireFormat() {
            request = new Smb2QueryInfoRequest(mockConfig);
            byte[] buffer = new byte[256];
    
            int bytesRead = request.readBytesWireFormat(buffer, 0);
    
            // This method should always return 0 as the request doesn't read responses
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  2. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. 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.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

        void testReadBytesWireFormat() {
            // Given
            request = new Smb2NegotiateRequest(mockConfig, 0);
            byte[] buffer = new byte[256];
    
            // When
            int bytesRead = request.readBytesWireFormat(buffer, 0);
    
            // Then - This is a request, so it doesn't read from wire
            assertEquals(0, bytesRead);
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

            return n;
        }
    
        @Override
        protected int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

        }
    
        @Test
        void decodesErrorStructureThroughReadBytesWireFormat() throws Exception {
            // For STATUS_INVALID_PARAMETER the override makes isErrorResponseStatus() return false,
            // so readBytesWireFormat() is invoked and must delegate back to readErrorResponse() when it sees size=9.
            byte[] header = buildHeader(NtStatus.NT_STATUS_INVALID_PARAMETER);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                return digest;
            }
    
            public void setDigest(Smb2SigningDigest digest) {
                this.digest = digest;
            }
    
            @Override
            protected int readBytesWireFormat(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
                // Simple implementation for testing
                return 0;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            protected int readParameterWordsWireFormat(byte[] src, int srcIndex) {
                paramWordsRead = 10;
                return paramWordsRead;
            }
    
            @Override
            protected int readBytesWireFormat(byte[] src, int srcIndex) throws SMBProtocolDecodingException {
                bytesRead = 20;
                return bytesRead;
            }
    
            public void setParamWordsRead(int value) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

        }
    
        @Override
        protected int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        /**
         * Writes setup data in wire format
         * @param dst destination buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

         */
        @Override
        public void setupResponse(final Response resp) {
        }
    
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    
            // Validate minimum buffer size for SMB2 negotiate response
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
Back to top