Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 184 for readInt2 (1.7 sec)

  1. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            assertEquals(36, SMBUtil.readInt2(buffer, 0));
    
            // Verify dialect count
            assertEquals(3, SMBUtil.readInt2(buffer, 2)); // SMB210, SMB300, SMB302
    
            // Verify security mode
            assertEquals(Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED, SMBUtil.readInt2(buffer, 4));
    
            // Verify capabilities
            int caps = SMBUtil.readInt4(buffer, 8);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComOpenAndXResponse.java

            final int start = bufferIndex;
    
            fid = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            fileAttributes = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            lastWriteTime = readUTime(buffer, bufferIndex);
            bufferIndex += 4;
            dataSize = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            grantedAccess = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            bufferIndex += 16;
    
            this.capabilities = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            this.maxTransactSize = SMBUtil.readInt4(buffer, bufferIndex);
            this.maxReadSize = SMBUtil.readInt4(buffer, bufferIndex + 4);
            this.maxWriteSize = SMBUtil.readInt4(buffer, bufferIndex + 8);
    
            // Validate reasonable buffer sizes to prevent resource exhaustion
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                assertEquals(6, bytesWritten);
                assertEquals(2, SMBUtil.readInt2(buffer, 0));
                assertEquals(EncryptionNegotiateContext.CIPHER_AES128_CCM, SMBUtil.readInt2(buffer, 2));
                assertEquals(EncryptionNegotiateContext.CIPHER_AES128_GCM, SMBUtil.readInt2(buffer, 4));
            }
    
            @Test
            @DisplayName("Should encode null ciphers as zero count")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/dfs/DfsReferralResponseBuffer.java

            final int start = bufferIndex;
    
            this.pathConsumed = SMBUtil.readInt2(buffer, bufferIndex) / 2;
            bufferIndex += 2;
            this.numReferrals = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.tflags = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 4;
    
            this.referrals = new Referral[this.numReferrals];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/util/SMBUtilTest.java

                    (byte) 0xCD, (byte) 0xAB // 0xABCD
            };
    
            assertEquals(0x1234, SMBUtil.readInt2(src, 0));
            assertEquals(0xFFFF, SMBUtil.readInt2(src, 2));
            assertEquals(0x0000, SMBUtil.readInt2(src, 4));
            assertEquals(0xABCD, SMBUtil.readInt2(src, 6));
        }
    
        @Test
        void testReadInt4() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndXResponse.java

            bufferIndex += 8;
            extFileAttributes = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            allocationSize = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            endOfFile = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            fileType = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            deviceState = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

                    int cci = createContextStart;
                    next = SMBUtil.readInt4(buffer, cci);
                    cci += 4;
    
                    final int nameOffset = SMBUtil.readInt2(buffer, cci);
                    final int nameLength = SMBUtil.readInt2(buffer, cci + 2);
                    cci += 4;
    
                    final int dataOffset = SMBUtil.readInt2(buffer, cci + 2);
                    cci += 4;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

            bufferIndex += 2;
            this.parameterDisplacement = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.dataCount = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.dataOffset = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.dataDisplacement = SMBUtil.readInt2(buffer, bufferIndex);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/NameServicePacket.java

            this.resultCode = src[srcIndex + OPCODE_OFFSET + 1] & 0x0F;
            this.questionCount = readInt2(src, srcIndex + QUESTION_OFFSET);
            this.answerCount = readInt2(src, srcIndex + ANSWER_OFFSET);
            this.authorityCount = readInt2(src, srcIndex + AUTHORITY_OFFSET);
            this.additionalCount = readInt2(src, srcIndex + ADDITIONAL_OFFSET);
            return HEADER_LENGTH;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top