Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 230 for SMBUtil (0.8 sec)

  1. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/fscc/FileStandardInfo.java

            final int start = bufferIndex;
            this.allocationSize = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            this.endOfFile = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            this.numberOfLinks = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            this.deletePending = (buffer[bufferIndex] & 0xFF) > 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComOpenAndXResponse.java

            bufferIndex += 2;
            this.fileType = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.deviceState = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.action = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.serverFid = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 6;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java

    import org.junit.jupiter.api.Test;
    
    import jcifs.internal.util.SMBUtil;
    
    public class AvTimestampTest {
    
        /**
         * Test constructor with raw bytes.
         */
        @Test
        public void testConstructorWithRawBytes() {
            byte[] rawBytes = new byte[8];
            SMBUtil.writeInt8(1234567890L, rawBytes, 0); // Example timestamp
            AvTimestamp avTimestamp = new AvTimestamp(rawBytes);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                System.arraycopy(SMBUtil.SMB_HEADER, 0, buffer, 0, SMBUtil.SMB_HEADER.length);
    
                buffer[SmbConstants.CMD_OFFSET] = 0x25;
                SMBUtil.writeInt4(0, buffer, SmbConstants.ERROR_CODE_OFFSET);
                buffer[SmbConstants.FLAGS_OFFSET] = 0x12;
                SMBUtil.writeInt2(0x3456, buffer, SmbConstants.FLAGS_OFFSET + 1);
                SMBUtil.writeInt2(0x1234, buffer, SmbConstants.TID_OFFSET);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Test class for FileRenameInformation2
     */
    @DisplayName("FileRenameInformation2 Tests")
    class FileRenameInformation2Test {
    
        private FileRenameInformation2 fileRenameInfo;
    
        @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            // status (2 bytes)
            SMBUtil.writeInt2(0, buffer, bufferIndex);
            bufferIndex += 2;
            // converter (2 bytes)
            SMBUtil.writeInt2(100, buffer, bufferIndex);
            bufferIndex += 2;
            // numEntries (2 bytes)
            SMBUtil.writeInt2(3, buffer, bufferIndex);
            bufferIndex += 2;
            // totalAvailableEntries (2 bytes)
            SMBUtil.writeInt2(5, buffer, bufferIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakAcknowledgment.java

            int start = dstIndex;
    
            // StructureSize (2 bytes) - must be 36
            SMBUtil.writeInt2(STRUCTURE_SIZE, dst, dstIndex);
            dstIndex += 2;
    
            // Reserved (2 bytes)
            SMBUtil.writeInt2(0, dst, dstIndex);
            dstIndex += 2;
    
            // Flags (4 bytes)
            SMBUtil.writeInt4(flags, dst, dstIndex);
            dstIndex += 4;
    
            // LeaseKey (16 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            // Verify search attributes (masked with 0x37)
            assertEquals(0x37, SMBUtil.readInt2(buffer, 0));
    
            // Verify max items
            assertEquals(100, SMBUtil.readInt2(buffer, 2));
    
            // Verify flags (should be 0x00)
            assertEquals(0x00, SMBUtil.readInt2(buffer, 4));
    
            // Verify information level (SMB_FILE_BOTH_DIRECTORY_INFO)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

            desc2.writeParametersWireFormat(dst2, 0);
            desc3.writeParametersWireFormat(dst3, 0);
    
            assertEquals(0x1111, SMBUtil.readInt2(dst1, 0));
            assertEquals(0x2222, SMBUtil.readInt2(dst2, 0));
            assertEquals(0x3333, SMBUtil.readInt2(dst3, 0));
        }
    
        @Test
        @DisplayName("Test parameter wire format structure")
        void testParameterWireFormatStructure() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
Back to top