Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 15 for wordCount (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            buffer[33] = 34; // wordCount for extended response
            buffer[34] = (byte) 0xFF; // andxCommand
            SMBUtil.writeInt2(20, buffer, 102); // byteCount
    
            int length = testBlock.decode(buffer, 0);
    
            assertTrue(length > 0);
            // wordCount is set to 34 + 8 = 42 in the implementation for extended response
            assertEquals(42, testBlock.wordCount); // Should be 34 + 8 = 42
        }
    
    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)
  2. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

        }
    
        @Test
        void testReadParameterWordsWireFormatWithZeroWordCount() {
            // Test reading when wordCount is 0
            response = new SmbComQueryInformationResponse(mockConfig, 0L);
    
            // Set wordCount to 0
            setFieldValue(response, "wordCount", 0);
    
            byte[] buffer = new byte[256];
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
    
    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/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

            String result = smbComNegotiate.toString();
            assertTrue(result.startsWith("SmbComNegotiate["), "String should start with SmbComNegotiate[");
            assertTrue(result.contains("wordCount=0"), "String should contain wordCount=0");
            assertTrue(result.contains("dialects=NT LM 0.12]"), "String should contain dialects=NT LM 0.12]");
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComNegotiate.java

        int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        public String toString() {
            return ("SmbComNegotiate[" + super.toString() + ",wordCount=" + wordCount + ",dialects=NT LM 0.12]");
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

                return bytes.length;
            }
    
            @Override
            int readParameterWordsWireFormat(byte[] buffer, int bufferIndex) {
                System.arraycopy(buffer, bufferIndex, paramWords, 0, wordCount * 2);
                return wordCount * 2;
            }
    
            @Override
            int readBytesWireFormat(byte[] buffer, int bufferIndex) {
                System.arraycopy(buffer, bufferIndex, bytes, 0, byteCount);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

            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;
            dst[start] = (byte) (this.wordCount & 0xFF);
    
            this.byteCount = writeBytesWireFormat(dst, dstIndex + 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)
  7. src/main/java/jcifs/smb1/smb1/SmbComQueryInformationResponse.java

        @Override
        int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) {
            if (wordCount == 0) {
                return 0;
            }
            fileAttributes = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            lastWriteTime = readUTime(buffer, bufferIndex);
            bufferIndex += 4;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            this.wordCount = buffer[bufferIndex];
            bufferIndex++;
            if (this.wordCount != 0) {
                int n = readParameterWordsWireFormat(buffer, bufferIndex);
                if ((n != this.wordCount * 2) && log.isTraceEnabled()) {
                    log.trace("wordCount * 2=" + this.wordCount * 2 + " but readParameterWordsWireFormat returned " + n);
                }
    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)
  9. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

                }
            }
    
            return bufferIndex - start;
        }
    
        @Override
        public String toString() {
            return ("SmbComNegotiateResponse[" + super.toString() + ",wordCount=" + this.wordCount + ",dialectIndex=" + this.dialectIndex
                    + ",securityMode=0x" + Hexdump.toHexString(this.server.securityMode, 1) + ",security="
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            return ("command=" + c + ",status=" + str + ",flags=0x" + Hexdump.toHexString(this.flags, 4) + ",mid=" + this.mid + ",wordCount="
                    + this.wordCount + ",byteCount=" + this.byteCount);
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
Back to Top