Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for writeUTime (1.02 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java

            assertEquals(6, bytesWritten);
            assertEquals(fid, SMBUtil.readInt2(dst, 0));
            // With a digest, the lastWriteTime should be written.
            // We can't verify the exact bytes without a real implementation of writeUTime,
            // but we can check that it's not zero.
            long writtenTime = SMBUtil.readInt4(dst, 2) & 0xFFFFFFFFL;
            // This is a weak check, but better than nothing.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

            return readInt4(buffer, bufferIndex) * 1000L;
        }
    
        static void writeUTime(long t, final byte[] dst, final int dstIndex) {
            if (t == 0L || t == 0xFFFFFFFFFFFFFFFFL) {
                writeInt4(0xFFFFFFFF, dst, dstIndex);
                return;
            }
            synchronized (TZ) {
                if (TZ.inDaylightTime(new Date())) {
                    // in DST
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

         * @param dst
         *            The destination byte array
         * @param dstIndex
         *            The starting index in the destination array
         */
        public static void writeUTime(final Configuration cfg, long t, final byte[] dst, final int dstIndex) {
            if (t == 0L || t == 0xFFFFFFFFFFFFFFFFL) {
                SMBUtil.writeInt4(0xFFFFFFFF, dst, dstIndex);
                return;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            long maxTime = System.currentTimeMillis() + 1000000000000L;
            SMBUtil.writeTime(maxTime, buffer, 8); // creationTime
            SMBUtil.writeTime(maxTime, buffer, 16); // lastAccessTime
            SMBUtil.writeTime(maxTime, buffer, 24); // lastWriteTime
            SMBUtil.writeTime(maxTime, buffer, 32); // changeTime
            SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 40); // endOfFile
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            // Use SMBUtil to properly encode times in Windows FILETIME format
            SMBUtil.writeTime(TEST_CREATE_TIME, buffer, bufferIndex);
            SMBUtil.writeTime(TEST_LAST_ACCESS_TIME, buffer, bufferIndex + 8);
            SMBUtil.writeTime(TEST_LAST_WRITE_TIME, buffer, bufferIndex + 16);
            SMBUtil.writeTime(TEST_CHANGE_TIME, buffer, bufferIndex + 24);
            SMBUtil.writeInt4(TEST_ATTRIBUTES, buffer, bufferIndex + 32);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/fscc/FileBasicInfo.java

            final int start = dstIndex;
            SMBUtil.writeTime(this.createTime, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeTime(this.lastAccessTime, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeTime(this.lastWriteTime, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeTime(this.changeTime, dst, dstIndex);
            dstIndex += 8;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. cmd/bucket-metadata_gen.go

    		return
    	}
    	err = en.WriteTime(z.EncryptionConfigUpdatedAt)
    	if err != nil {
    		err = msgp.WrapError(err, "EncryptionConfigUpdatedAt")
    		return
    	}
    	// write "TaggingConfigUpdatedAt"
    	err = en.Append(0xb6, 0x54, 0x61, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
    	if err != nil {
    		return
    	}
    	err = en.WriteTime(z.TaggingConfigUpdatedAt)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/Trans2SetFileInformation.java

        }
    
        @Override
        int writeDataWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            // Entry 1
            writeInt4(120, buffer, bufferIndex); // nextEntryOffset = 120 (relative)
            writeInt4(1, buffer, bufferIndex + 4); // fileIndex = 1
            writeTime(1672531200000L, buffer, bufferIndex + 8); // creationTime
            writeTime(1672617600000L, buffer, bufferIndex + 24); // lastWriteTime
            writeInt8(2048, buffer, bufferIndex + 40); // endOfFile
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            SMBUtil.writeInt4(createAction, body, i); // CreateAction
            i += 4;
    
            SMBUtil.writeTime(ctime, body, i); // CreationTime
            i += 8;
            SMBUtil.writeTime(atime, body, i); // LastAccessTime
            i += 8;
            SMBUtil.writeTime(mtime, body, i); // LastWriteTime
            i += 8;
            SMBUtil.writeTime(chtime, body, i); // ChangeTime
            i += 8;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top