public static class WinNT.LARGE_INTEGER extends Structure implements Comparable<WinNT.LARGE_INTEGER>
Modifier and Type | Class and Description |
---|---|
static class |
WinNT.LARGE_INTEGER.ByReference |
static class |
WinNT.LARGE_INTEGER.LowHigh |
static class |
WinNT.LARGE_INTEGER.UNION |
Structure.ByValue, Structure.StructField
Modifier and Type | Field and Description |
---|---|
WinNT.LARGE_INTEGER.UNION |
u |
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
Constructor and Description |
---|
LARGE_INTEGER() |
LARGE_INTEGER(long value) |
Modifier and Type | Method and Description |
---|---|
static int |
compare(WinNT.LARGE_INTEGER v1,
long v2)
Compares a LARGE_INTEGER value with a
long one. |
static int |
compare(WinNT.LARGE_INTEGER v1,
WinNT.LARGE_INTEGER v2)
Compares 2 LARGE_INTEGER values - - Note: a
null
value is considered greater than any non-null one
(i.e., null values are "pushed" to the end
of a sorted array / list of values) |
int |
compareTo(WinNT.LARGE_INTEGER other) |
protected List<String> |
getFieldOrder()
Return this Structure's field names in their proper order.
|
WinDef.DWORD |
getHigh()
High DWORD.
|
WinDef.DWORD |
getLow()
Low DWORD.
|
long |
getValue()
64-bit value.
|
String |
toString()
If
jna.dump_memory is true, will include a native memory dump
of the Structure's backing memory. |
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField, writeField
public WinNT.LARGE_INTEGER.UNION u
public LARGE_INTEGER()
public LARGE_INTEGER(long value)
protected List<String> getFieldOrder()
Structure
protected List getFieldOrder() {
return Arrays.asList(new String[] { ... });
}
IMPORTANT
When deriving from an existing Structure subclass, ensure that
you augment the list provided by the superclass, e.g.
protected List getFieldOrder() {
List fields = new ArrayList(super.getFieldOrder());
fields.addAll(Arrays.asList(new String[] { ... }));
return fields;
}
Field order must be explicitly indicated, since the
field order as returned by Class.getFields()
is not
guaranteed to be predictable.getFieldOrder
in class Structure
public WinDef.DWORD getLow()
public WinDef.DWORD getHigh()
public long getValue()
public int compareTo(WinNT.LARGE_INTEGER other)
compareTo
in interface Comparable<WinNT.LARGE_INTEGER>
public String toString()
Structure
jna.dump_memory
is true, will include a native memory dump
of the Structure's backing memory.public static int compare(WinNT.LARGE_INTEGER v1, WinNT.LARGE_INTEGER v2)
null
value is considered greater than any non-null
one
(i.e., null
values are "pushed" to the end
of a sorted array / list of values)v1
- The 1st valuev2
- The 2nd valuenull
,
negative if 1st value less than 2nd one, positive otherwise. Note:
the comparison uses the getValue()
.IntegerType.compare(long, long)
public static int compare(WinNT.LARGE_INTEGER v1, long v2)
long
one. Note: if
the LARGE_INTEGER value is null
then it is consider greater
than any long
value.v1
- The WinNT.LARGE_INTEGER
valuev2
- The long
valuegetValue()
.IntegerType.compare(long, long)