Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 230 for SMBUtil (0.07 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

                byte[] buffer = new byte[64];
                SMBUtil.writeInt2(17, buffer, 0); // Structure size
                SMBUtil.writeInt2(0, buffer, 2); // Reserved
                SMBUtil.writeInt4(4096, buffer, 4); // Count
                SMBUtil.writeInt4(2048, buffer, 8); // Remaining
                SMBUtil.writeInt2(100, buffer, 12); // WriteChannelInfoOffset (ignored)
                SMBUtil.writeInt2(200, buffer, 14); // WriteChannelInfoLength (ignored)
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                // Verify structure
                assertEquals(48, SMBUtil.readInt2(buffer, 0)); // Structure size
                assertEquals(1, SMBUtil.readInt2(buffer, 2)); // Lock count
    
                // Verify lock sequence (bits 4-7 are sequence number, bits 0-27 are index)
                int lockSequence = SMBUtil.readInt4(buffer, 4);
                assertEquals(0, lockSequence); // Default values
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            boolean expectedDirectory = false;
    
            // Encode test data
            int offset = 0;
            SMBUtil.writeInt8(expectedAllocationSize, buffer, offset);
            offset += 8;
            SMBUtil.writeInt8(expectedEndOfFile, buffer, offset);
            offset += 8;
            SMBUtil.writeInt4(expectedNumberOfLinks, buffer, offset);
            offset += 4;
            buffer[offset++] = (byte) (expectedDeletePending ? 1 : 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/dtyp/SecurityDescriptor.java

            bufferIndex++;
            this.type = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            final int ownerUOffset = SMBUtil.readInt4(buffer, bufferIndex); // offset to owner sid
            bufferIndex += 4;
            final int ownerGOffset = SMBUtil.readInt4(buffer, bufferIndex); // offset to group sid
            bufferIndex += 4;
            SMBUtil.readInt4(buffer, bufferIndex); // offset to sacl
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            SMBUtil.writeTime(maxTime, buffer, 32); // changeTime
            SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 40); // endOfFile
            SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 48); // allocationSize
            SMBUtil.writeInt4(Integer.MAX_VALUE, buffer, 56); // extFileAttributes
            SMBUtil.writeInt4(Integer.MAX_VALUE, buffer, 64); // eaSize
    
            // Decode
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

                assertEquals(100L, SMBUtil.readInt8(buffer, 0));
                assertEquals(200L, SMBUtil.readInt8(buffer, 8));
                assertEquals(1, SMBUtil.readInt4(buffer, 16));
    
                // Verify second lock
                assertEquals(300L, SMBUtil.readInt8(buffer, 24));
                assertEquals(400L, SMBUtil.readInt8(buffer, 32));
                assertEquals(2, SMBUtil.readInt4(buffer, 40));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java

            int start = dstIndex;
    
            // Compression count (2 bytes)
            SMBUtil.writeInt2(this.compressionAlgorithms.length, dst, dstIndex);
            dstIndex += 2;
    
            // Padding (2 bytes)
            SMBUtil.writeInt2(0, dst, dstIndex);
            dstIndex += 2;
    
            // Flags (4 bytes)
            SMBUtil.writeInt4(this.flags, dst, dstIndex);
            dstIndex += 4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            buffer[bufferIndex + 2] = 0x00;
    
            SMBUtil.writeInt4(totalParams, buffer, bufferIndex + 3);
            SMBUtil.writeInt4(totalData, buffer, bufferIndex + 7);
            SMBUtil.writeInt4(paramCount, buffer, bufferIndex + 11);
            SMBUtil.writeInt4(paramOffset, buffer, bufferIndex + 15);
            SMBUtil.writeInt4(paramDisp, buffer, bufferIndex + 19);
            SMBUtil.writeInt4(dataCount, buffer, bufferIndex + 23);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

            assertEquals(32, SMBUtil.readInt2(buffer, 0)); // StructureSize
            assertEquals(0x0001, SMBUtil.readInt2(buffer, 2)); // Flags
            assertEquals(8192, SMBUtil.readInt4(buffer, 4)); // OutputBufferLength
            // FileId at offset 8-23
            assertEquals(0x00000FFF, SMBUtil.readInt4(buffer, 24)); // CompletionFilter
            assertEquals(0, SMBUtil.readInt4(buffer, 28)); // Reserved
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/com/SmbComOpenAndX.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.tflags, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.desiredAccess, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.searchAttributes, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.fileAttributes, dst, dstIndex);
            dstIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
Back to top