Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for FILETIME (0.21 sec)

  1. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            long time = System.currentTimeMillis();
            BigInteger filetime = BigInteger.valueOf(time)
                    .add(BigInteger.valueOf(SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601))
                    .multiply(BigInteger.valueOf(10000L));
    
            byte[] data = new byte[8];
            long low = filetime.longValue();
            long high = filetime.shiftRight(32).longValue();
    
            // write little-endian
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/util/SMBUtil.java

            dst[++dstIndex] = (byte) (val >>= 8);
            dst[++dstIndex] = (byte) (val >>= 8);
            dst[++dstIndex] = (byte) (val >> 8);
        }
    
        /**
         * Reads a Windows FILETIME value and converts it to Java time in milliseconds
         * @param src the source byte array
         * @param srcIndex the starting index in the source array
         * @return the time value in milliseconds since January 1, 1970 UTC
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/ntlmssp/av/AvTimestamp.java

            super(AvPair.MsvAvTimestamp, raw);
        }
    
        /**
         * Constructs an AvTimestamp with the specified timestamp value
         *
         * @param ts the timestamp value in Windows FILETIME format
         */
        public AvTimestamp(final long ts) {
            this(encode(ts));
        }
    
        /**
         * @param ts
         * @return
         */
        private static byte[] encode(final long ts) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/InfoTest.java

            long lastAccess = 1600000100000L;
            long lastWrite = 1600000200000L;
            long change = 1600000300000L;
            int attributes = 0x1234;
            // Convert Unix time to Windows FILETIME (100-nanosecond intervals since 1601)
            long MILLISECONDS_BETWEEN_1970_AND_1601 = 11644473600000L;
            writeLong(buffer, 0, (create + MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java

            // Response sequence number (64-bit)
            responseSequenceNumber = buf.dec_ndr_hyper();
    
            // Heartbeat interval (64-bit, in 100-nanosecond intervals)
            // Convert from FILETIME intervals to milliseconds
            long filetimeInterval = buf.dec_ndr_hyper();
            heartbeatInterval = filetimeInterval / 10000; // Convert to milliseconds
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/pac/PacDataInputStream.java

         * @throws IOException if an I/O error occurs
         */
        public int readUnsignedShort() throws IOException {
            return readShort() & 0xffff;
        }
    
        /**
         * Reads a Windows FILETIME value and converts it to a Date.
         * @return the Date object, or null if the time represents infinity
         * @throws IOException if an I/O error occurs
         */
        public Date readFiletime() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top