Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 234 for writeInt4 (0.07 sec)

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

            SMBUtil.writeInt4(0, buffer, headerStart + 16);
            // Next command
            SMBUtil.writeInt4(0, buffer, headerStart + 20);
            // Message ID
            SMBUtil.writeInt8(1, buffer, headerStart + 24);
            // Reserved/Async ID
            SMBUtil.writeInt8(0, buffer, headerStart + 32);
            // Session ID
            SMBUtil.writeInt8(0, buffer, headerStart + 40);
            // Signature
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            int dataOffset = offset;
            SMBUtil.writeInt4(0, buffer, dataOffset);
            dataOffset += 4;
            SMBUtil.writeInt4(8, buffer, dataOffset);
            dataOffset += 4;
            SMBUtil.writeInt4(1000000, buffer, dataOffset);
            dataOffset += 4;
            SMBUtil.writeInt4(500000, buffer, dataOffset);
            dataOffset += 4;
            SMBUtil.writeInt2(512, buffer, dataOffset);
    
            // Set dataCount
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

                // Minimum size buffer
                byte[] minBuffer = new byte[20];
                SMBUtil.writeInt2(17, minBuffer, 0);
                SMBUtil.writeInt2(0, minBuffer, 2);
                SMBUtil.writeInt4(100, minBuffer, 4);
                SMBUtil.writeInt4(50, minBuffer, 8);
                SMBUtil.writeInt4(0, minBuffer, 12);
                SMBUtil.writeInt4(0, minBuffer, 16);
    
                int bytesRead = response.readBytesWireFormat(minBuffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                byte[] data = new byte[128];
                // Initialize the data buffer with proper SMB2 header structure
                SMBUtil.writeInt4(0xFE534D42, data, 0); // SMB2 signature
                SMBUtil.writeInt4(0x0000, data, 12); // Command = 0
                SMBUtil.writeInt4(0x0000, data, 16); // Flags = 0
    
                CommonServerMessageBlock request = mock(CommonServerMessageBlock.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

            // Next command
            SMBUtil.writeInt4(0, buffer, bufferIndex + 20);
            // Message ID
            SMBUtil.writeInt8(1, buffer, bufferIndex + 24);
            // Reserved/Async ID
            SMBUtil.writeInt8(0, buffer, bufferIndex + 32);
            // Session ID
            SMBUtil.writeInt8(0, buffer, bufferIndex + 40);
            // Signature
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. 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)
  7. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            buffer[20] = 1; // Revision
            buffer[21] = 0; // Sbz1
            SMBUtil.writeInt2(0x8004, buffer, 22); // Control flags
            SMBUtil.writeInt4(0, buffer, 24); // Owner offset
            SMBUtil.writeInt4(0, buffer, 28); // Group offset
            SMBUtil.writeInt4(0, buffer, 32); // SACL offset
            SMBUtil.writeInt4(0, buffer, 36); // DACL offset
    
            int result = response.readBytesWireFormat(buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

            SMBUtil.writeInt2(16, buffer, offset); // Structure size
            buffer[offset + 2] = (byte) 0x01; // Share type (DISK)
            buffer[offset + 3] = 0; // Reserved
            SMBUtil.writeInt4(0x8001, buffer, offset + 4); // Share flags (DFS | ENCRYPT_DATA)
            SMBUtil.writeInt4(0x28, buffer, offset + 8); // Capabilities (DFS | SCALEOUT)
            SMBUtil.writeInt4(0x1F01FF, buffer, offset + 12); // Maximal access
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

            int offset = 0;
            SMBUtil.writeInt4(idFileSystem, buffer, offset); // idFileSystem (skipped)
            offset += 4;
            SMBUtil.writeInt4(sectPerAlloc, buffer, offset);
            offset += 4;
            SMBUtil.writeInt4((int) alloc, buffer, offset);
            offset += 4;
            SMBUtil.writeInt4((int) free, buffer, offset);
            offset += 4;
            SMBUtil.writeInt2(bytesPerSect, buffer, offset);
            offset += 2;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            // EndOfFile
            SMBUtil.writeInt8(0, buffer, dataOffset + 40);
            // AllocationSize
            SMBUtil.writeInt8(0, buffer, dataOffset + 48);
            // ExtFileAttributes
            SMBUtil.writeInt4(0, buffer, dataOffset + 56);
            // FileNameLength
            SMBUtil.writeInt4(8, buffer, dataOffset + 60);
            // EaSize
            SMBUtil.writeInt4(0, buffer, dataOffset + 64);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
Back to top