Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 212 for writeInt8 (0.39 sec)

  1. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                byte[] buffer = new byte[60];
                SMBUtil.writeInt2(60, buffer, 0);
                SMBUtil.writeInt2(1, buffer, 2);
    
                long testTime = 116444736000000000L;
                SMBUtil.writeInt8(testTime, buffer, 8);
                SMBUtil.writeInt8(testTime + 1000, buffer, 16);
                SMBUtil.writeInt8(testTime + 2000, buffer, 24);
                SMBUtil.writeInt8(testTime + 3000, buffer, 32);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  2. 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)
  3. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            SMBUtil.writeInt4(0, buffer, 0); // nextEntryOffset
            SMBUtil.writeInt4(0, buffer, 4); // fileIndex
            SMBUtil.writeInt8(0, buffer, 8); // creationTime - raw 0 in wire format
            SMBUtil.writeInt8(0, buffer, 16); // lastAccessTime - raw 0 in wire format
            SMBUtil.writeInt8(0, buffer, 24); // lastWriteTime - raw 0 in wire format
            SMBUtil.writeInt8(0, buffer, 32); // changeTime - raw 0 in wire format
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/util/SMBUtilTest.java

        @Test
        void testNegativeValueHandling() {
            byte[] buffer = new byte[8];
    
            // Test negative values in writeInt4
            SMBUtil.writeInt4(-1L, buffer, 0);
            assertEquals(-1, SMBUtil.readInt4(buffer, 0));
    
            // Test negative values in writeInt8
            SMBUtil.writeInt8(-1L, buffer, 0);
            assertEquals(-1L, SMBUtil.readInt8(buffer, 0));
        }
    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/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/FileInternalInfoTest.java

            SMBUtil.writeInt8(indexNumber1, buffer1, 0);
            fileInternalInfo.decode(buffer1, 0, buffer1.length);
            assertEquals(indexNumber1, fileInternalInfo.getIndexNumber());
    
            // Second decode - should overwrite previous value
            byte[] buffer2 = new byte[8];
            long indexNumber2 = 0x2222222222222222L;
            SMBUtil.writeInt8(indexNumber2, buffer2, 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

            // Write FileFsFullSizeInformation data (32 bytes)
            SMBUtil.writeInt8(1000000, buffer, 20); // Total allocation units
            SMBUtil.writeInt8(500000, buffer, 28); // Caller available units
            SMBUtil.writeInt8(600000, buffer, 36); // Actual available units
            SMBUtil.writeInt4(512, buffer, 44); // Sectors per unit
            SMBUtil.writeInt4(4096, buffer, 48); // Bytes per sector
    
    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/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)
  9. src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java

    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);
    
            assertNotNull(avTimestamp);
            assertEquals(AvPair.MsvAvTimestamp, avTimestamp.getType());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Trans2SetFileInformation.java

            writeTime(createTime, dst, dstIndex);
            dstIndex += 8;
            writeInt8(0L, dst, dstIndex);
            dstIndex += 8;
            writeTime(lastWriteTime, dst, dstIndex);
            dstIndex += 8;
            writeInt8(0L, dst, dstIndex);
            dstIndex += 8;
            /* Samba 2.2.7 needs ATTR_NORMAL
             */
            writeInt2(0x80 | attributes, dst, dstIndex);
            dstIndex += 2;
            /* 6 zeros observed with NT */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
Back to top