All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jnr.posix.windows.WindowsFileTime Maven / Gradle / Ivy

There is a newer version: 3.6.0-1
Show newest version
package jnr.posix.windows;

/**
 * FILETIME
 */
public class WindowsFileTime extends jnr.ffi.Struct {
    final Unsigned32 lowDateTime = new Unsigned32();
    final Unsigned32 highDateTime = new Unsigned32();

    public WindowsFileTime(jnr.ffi.Runtime runtime) {
        super(runtime);
    }

    public int getLowDateTime() {
        return lowDateTime.intValue();
    }

    public int getHighDateTime() {
        return highDateTime.intValue();
    }

    public long getLongValue() {
        return getHighDateTime() << 32 + getLowDateTime();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy