Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 230 for SMBUtil (0.17 sec)

  1. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

            SMBUtil.writeInt4(this.desiredAccess, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt4(this.fileAttributes, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt4(this.shareAccess, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt4(this.createDisposition, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt4(this.createOptions, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            // Write structure header
            SMBUtil.writeInt2(9, buffer, offset);
            SMBUtil.writeInt2(80 - 64, buffer, offset + 2);
            SMBUtil.writeInt4(12 + fileNameBytes.length, buffer, offset + 4);
    
            // Write notification
            int notifyOffset = 80;
            SMBUtil.writeInt4(0, buffer, notifyOffset);
            SMBUtil.writeInt4(1, buffer, notifyOffset + 4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/fscc/FileFsFullSizeInformation.java

            // Read total allocation units.
            this.alloc = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            // read caller available allocation units
            this.free = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            // skip actual free units
            bufferIndex += 8;
    
            this.sectPerAlloc = 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
    - 3.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/util/SMBUtilTest.java

            SMBUtil.writeUTime(0L, dst, 0);
            assertEquals(0, SMBUtil.readInt4(dst, 0));
    
            // Test with specific value (Unix timestamp in milliseconds)
            SMBUtil.writeUTime(1500000000000L, dst, 4);
            assertEquals(1500000000, SMBUtil.readInt4(dst, 4));
        }
    
        @Test
        void testSMBHeader() {
            assertNotNull(SMBUtil.SMB_HEADER);
            assertEquals(24, SMBUtil.SMB_HEADER.length);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComReadAndX.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt4(this.offset, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt2(this.maxCount, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.minCount, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt4(this.openTimeout, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.hashAlgos != null ? this.hashAlgos.length : 0, dst, dstIndex);
            SMBUtil.writeInt2(this.salt != null ? this.salt.length : 0, dst, dstIndex + 2);
            dstIndex += 4;
    
            if (this.hashAlgos != null) {
                for (final int hashAlgo : this.hashAlgos) {
                    SMBUtil.writeInt2(hashAlgo, dst, dstIndex);
                    dstIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            assertEquals(getField(cmd, "fid"), SMBUtil.readInt2(buffer, 0));
            assertEquals(getField(cmd, "typeOfLock"), buffer[2]);
            assertEquals(getField(cmd, "newOpLockLevel"), buffer[3]);
            assertEquals(getField(cmd, "timeout"), (long) SMBUtil.readInt4(buffer, 4));
            assertEquals(1, SMBUtil.readInt2(buffer, 8));
            assertEquals(1, SMBUtil.readInt2(buffer, 10));
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            // Set SMB 3.1.1 dialect and 1 context
            SMBUtil.writeInt2(0x0311, buffer, 4);
            SMBUtil.writeInt2(1, buffer, 6);
            SMBUtil.writeInt4(128, buffer, 60); // Context offset
    
            // At offset 128 + 64 (header start), set context with excessive data length
            int contextPos = 192;
            SMBUtil.writeInt2(1, buffer, contextPos); // Context type
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

            this.server.smaxMpxCount = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.server.maxNumberVcs = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.server.maxBufferSize = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            this.server.maxRawSize = 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
    - 15.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/net/NetServerEnum2Response.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
    - 6K bytes
    - Viewed (0)
Back to top