Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 230 for SMBUtil (0.56 sec)

  1. src/main/java/jcifs/internal/util/SMBUtil.java

     * in SMB protocol format, handling endianness and data type conversions.
     *
     * @author mbechler
     */
    public class SMBUtil {
    
        /**
         * Private constructor to prevent instantiation of utility class.
         */
        private SMBUtil() {
        }
    
        /**
         * Writes a 16-bit integer value to a byte array in little-endian format
         * @param val the value to write
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // Structure size (64)
            SMBUtil.writeInt2(64, buffer, headerStart + 4);
            // Credit charge
            SMBUtil.writeInt2(1, buffer, headerStart + 6);
            // Status
            SMBUtil.writeInt4(0, buffer, headerStart + 8);
            // Command (READ = 0x0008)
            SMBUtil.writeInt2(0x0008, buffer, headerStart + 12);
            // Credit request/response
            SMBUtil.writeInt2(1, buffer, headerStart + 14);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

            // Header length
            SMBUtil.writeInt2(64, buffer, bufferIndex + 4);
            // Credit charge
            SMBUtil.writeInt2(1, buffer, bufferIndex + 6);
            // Status
            SMBUtil.writeInt4(0, buffer, bufferIndex + 8);
            // Command - SMB2_SET_INFO (0x0011)
            SMBUtil.writeInt2(0x0011, buffer, bufferIndex + 12);
            // Credits
            SMBUtil.writeInt2(1, buffer, bufferIndex + 14);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            System.arraycopy(SMBUtil.SMB2_HEADER, 0, buf, start, SMBUtil.SMB2_HEADER.length);
            // Status at +8
            SMBUtil.writeInt4(status, buf, start + 8);
            // Command at +12
            SMBUtil.writeInt2(command, buf, start + 12);
            // Flags at +16: server-to-redirector
            SMBUtil.writeInt4(0x00000001, buf, start + 16);
            // SessionId at +40 (sync header)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

            assertEquals(request.size(), encodedLength);
    
            // Verify data at correct offset
            assertEquals(DEFAULT_CAPABILITIES, SMBUtil.readInt4(buffer, offset));
            assertEquals(DEFAULT_SECURITY_MODE, SMBUtil.readInt2(buffer, offset + 20));
            assertEquals(defaultDialects.length, SMBUtil.readInt2(buffer, offset + 22));
        }
    
        @Test
        @DisplayName("Test encode with empty dialects")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            assertEquals(0, SMBUtil.readInt4(buffer, bodyOffset + 8));
    
            // Verify token length
            assertEquals(TEST_TOKEN.length, SMBUtil.readInt2(buffer, bodyOffset + 14));
    
            // Verify previous session ID
            assertEquals(TEST_PREVIOUS_SESSION_ID, SMBUtil.readInt8(buffer, bodyOffset + 16));
    
            // Verify token content at the security buffer offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                // Given
                byte[] buffer = new byte[10];
                int bufferIndex = 0;
                SMBUtil.writeInt2(4, buffer, bufferIndex); // Write structure size = 4
                SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved field
    
                // When
                int bytesRead = response.readBytesWireFormat(buffer, bufferIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                assertEquals(0, SMBUtil.readInt4(buffer, headerStart + 32)); // Channel
                assertEquals(500, SMBUtil.readInt4(buffer, headerStart + 36)); // Remaining bytes
                assertEquals(0, SMBUtil.readInt2(buffer, headerStart + 40)); // WriteChannelInfoOffset
                assertEquals(0, SMBUtil.readInt2(buffer, headerStart + 42)); // WriteChannelInfoLength
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            System.arraycopy(SMBUtil.SMB2_HEADER, 0, dst, dstIndex, SMBUtil.SMB2_HEADER.length);
    
            SMBUtil.writeInt2(this.creditCharge, dst, dstIndex + 6);
            SMBUtil.writeInt2(this.command, dst, dstIndex + 12);
            SMBUtil.writeInt2(this.credit, dst, dstIndex + 14);
            SMBUtil.writeInt4(this.flags, dst, dstIndex + 16);
            SMBUtil.writeInt4(this.nextCommand, dst, dstIndex + 20);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

            this.creationTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            this.lastAccessTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            this.lastWriteTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            this.changeTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
    
            this.allocationSize = SMBUtil.readInt8(buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top