Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 230 for SMBUtil (0.05 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            // Verify sid (2 bytes)
            assertEquals(TEST_SID, SMBUtil.readInt2(buffer, 0));
    
            // Verify maxItems (2 bytes)
            assertEquals(TEST_BATCH_COUNT, SMBUtil.readInt2(buffer, 2));
    
            // Verify informationLevel (2 bytes) - should be SMB_FILE_BOTH_DIRECTORY_INFO (0x104)
            assertEquals(Trans2FindFirst2.SMB_FILE_BOTH_DIRECTORY_INFO, SMBUtil.readInt2(buffer, 4));
    
            // Verify resumeKey (4 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComReadAndXResponse.java

            final int start = bufferIndex;
    
            bufferIndex += 2; // reserved
            this.dataCompactionMode = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 4; // 2 reserved
            this.dataLength = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.dataOffset = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 12; // 10 reserved
    
            return bufferIndex - start;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java

            final int start = bufferIndex;
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 16) {
                throw new SMBProtocolDecodingException("Structure size is not 16");
            }
    
            this.shareType = buffer[bufferIndex + 2];
            bufferIndex += 4;
            this.shareFlags = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponse.java

            final int start = bufferIndex;
    
            this.capabilities = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            System.arraycopy(buffer, bufferIndex, this.serverGuid, 0, 16);
            bufferIndex += 16;
    
            this.securityMode = SMBUtil.readInt2(buffer, bufferIndex);
            this.dialect = SMBUtil.readInt2(buffer, bufferIndex + 2);
            bufferIndex += 4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Verify complete structure
            assertEquals(9, SMBUtil.readInt2(buffer, bodyOffset)); // Structure size
            assertEquals(0, SMBUtil.readInt2(buffer, bodyOffset + 2)); // Tree flags
            assertEquals(Smb2Constants.SMB2_HEADER_LENGTH + 8, SMBUtil.readInt2(buffer, bodyOffset + 4)); // Path offset
            assertEquals(pathBytes.length, SMBUtil.readInt2(buffer, bodyOffset + 6)); // Path length
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            // Use SMBUtil to properly encode times in Windows FILETIME format
            SMBUtil.writeTime(TEST_CREATE_TIME, buffer, bufferIndex);
            SMBUtil.writeTime(TEST_LAST_ACCESS_TIME, buffer, bufferIndex + 8);
            SMBUtil.writeTime(TEST_LAST_WRITE_TIME, buffer, bufferIndex + 16);
            SMBUtil.writeTime(TEST_CHANGE_TIME, buffer, bufferIndex + 24);
            SMBUtil.writeInt4(TEST_ATTRIBUTES, buffer, bufferIndex + 32);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java

         * @param dstIndex starting index
         * @return number of bytes written
         */
        public int encode(byte[] dst, int dstIndex) {
            SMBUtil.writeInt8(offset, dst, dstIndex);
            SMBUtil.writeInt4(token, dst, dstIndex + 8);
            SMBUtil.writeInt4(length, dst, dstIndex + 12);
            return 16;
        }
    
        /**
         * Decode from byte array
         *
         * @param buffer source buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            int testSecurityMode = 0x0001;
            int testDialect = 0x0202;
    
            // Write to buffer
            SMBUtil.writeInt4(testCapabilities, buffer, bufferIndex);
            System.arraycopy(testGuid, 0, buffer, bufferIndex + 4, 16);
            SMBUtil.writeInt2(testSecurityMode, buffer, bufferIndex + 20);
            SMBUtil.writeInt2(testDialect, buffer, bufferIndex + 22);
    
            // Execute decode
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

            assertEquals(AvPair.MsvAvFlags, SMBUtil.readInt2(encoded, 0), "First pair type should be MsvAvFlags");
            assertEquals(4, SMBUtil.readInt2(encoded, 2), "First pair length should be 4");
    
            // Check AvFlags data
            assertEquals(0x12345678, SMBUtil.readInt4(encoded, 4), "Flags value should match");
    
            // Check EOL
            assertEquals(AvPair.MsvAvEOL, SMBUtil.readInt2(encoded, 8), "Should end with EOL");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/net/NetShareEnumResponse.java

            final int start = bufferIndex;
    
            setStatus(SMBUtil.readInt2(buffer, bufferIndex));
            bufferIndex += 2;
            this.converter = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            setNumEntries(SMBUtil.readInt2(buffer, bufferIndex));
            bufferIndex += 2;
            this.totalAvailableEntries = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4K bytes
    - Viewed (0)
Back to top