Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 107 for writeParameterWordsWireFormat (0.12 seconds)

  1. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndXResponse.java

         *
         * @see jcifs.internal.SmbBasicFileInfo#getSize()
         */
        @Override
        public long getSize() {
            return getEndOfFile();
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

        }
    
        @Test
        void testWriteParameterWordsWireFormat() {
            // Test writeParameterWordsWireFormat - should always return 0
            response = new SmbComQueryInformationResponse(mockConfig, 0L);
    
            byte[] buffer = new byte[256];
            int bytesWritten = response.writeParameterWordsWireFormat(buffer, 0);
    
            assertEquals(0, bytesWritten);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

         *
         * @param fl
         *            the flags0 to set
         */
        public final void addFlags0(final int fl) {
            this.flags0 |= fl;
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            dst[dstIndex] = (byte) 0x00;
            dstIndex++;
            // name length without counting null termination
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

            return cmd == SMB_COM_TREE_CONNECT_ANDX ? cfg.getBatchLimit("SessionSetupAndX.TreeConnectAndX") : 0;
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.negotiated.getNegotiatedSendBufferSize(), dst, dstIndex);
            dstIndex += 2;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

         * @return the number of bytes written
         */
        protected int writeAndXWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            this.wordCount = writeParameterWordsWireFormat(dst, start + ANDX_OFFSET_OFFSET + 2);
            this.wordCount += 4; // for command, reserved, and offset
            dstIndex += this.wordCount + 1;
            this.wordCount /= 2;
    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)
  6. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

                super(config, command);
            }
    
            public TestAndXServerMessageBlock(Configuration config) {
                super(config);
            }
    
            @Override
            protected int writeParameterWordsWireFormat(byte[] dst, int dstIndex) {
                paramWordsWritten = 10; // Simulate writing parameter words
                return paramWordsWritten;
            }
    
            @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            }
    
            public TestServerMessageBlock(Configuration config, byte command, String path) {
                super(config, command, path);
            }
    
            @Override
            protected int writeParameterWordsWireFormat(byte[] dst, int dstIndex) {
                paramWordsWritten = 10;
                return paramWordsWritten;
            }
    
            @Override
            protected int writeBytesWireFormat(byte[] dst, int dstIndex) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 36.2K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

        /**
         * Gets the padding size for alignment
         * @return padding size
         */
        public int getPadding() {
            return PADDING_SIZE;
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.totalParameterCount, dst, dstIndex);
            dstIndex += 2;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                // Given
                byte[] buffer = new byte[100];
    
                // When
                int bytesWritten =
                        (int) invokeMethod(response, "writeParameterWordsWireFormat", new Class[] { byte[].class, int.class }, buffer, 0);
    
                // Then
                assertEquals(0, bytesWritten, "Should write 0 bytes for response");
            }
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

        public int encode(final byte[] dst, int dstIndex) {
            final int start = this.headerStart = dstIndex;
    
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            this.wordCount = writeParameterWordsWireFormat(dst, dstIndex + 1);
            dst[dstIndex] = (byte) (this.wordCount / 2 & 0xFF);
            dstIndex++;
            dstIndex += this.wordCount;
            this.wordCount /= 2;
    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)
Back to Top