Skip to content

Commit 0deb54b

Browse files
Merge pull request #1696 from baier233/master
Adding a LARGE_INTEGER.ByValue subclass
2 parents dc44b98 + feb9c33 commit 0deb54b

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Next Release (5.19.0)
77

88
Features
99
--------
10+
* [#1696](https://github.com/java-native-access/jna/pull/1696): Add `LARGE_INTEGER.ByValue` to `LARGE_INTEGER` in `WinNT.java` - [@baier233](https://github.com/baier233).
1011

1112
Bug Fixes
1213
---------
@@ -1464,4 +1465,4 @@ Bug Fixes
14641465
* Ensure native libraries are only loaded once until released
14651466
* Properly handle NULL when the return value is a Structure
14661467
* Proper conversion to wchar_t on linux
1467-
* Copy full length of Java strings to C strings instead of stopping when a NUL character is encountered
1468+
* Copy full length of Java strings to C strings instead of stopping when a NUL character is encountered

contrib/platform/src/com/sun/jna/platform/win32/WinNT.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,8 +1181,31 @@ public static class LUID extends Structure {
11811181
*/
11821182
@FieldOrder({"u"})
11831183
public static class LARGE_INTEGER extends Structure implements Comparable<LARGE_INTEGER> {
1184+
11841185
public static class ByReference extends LARGE_INTEGER implements
11851186
Structure.ByReference {
1187+
1188+
public ByReference() {
1189+
super();
1190+
}
1191+
1192+
public ByReference(long value) {
1193+
super(value);
1194+
}
1195+
1196+
}
1197+
1198+
public static class ByValue extends LARGE_INTEGER implements
1199+
Structure.ByValue {
1200+
1201+
public ByValue() {
1202+
super();
1203+
}
1204+
1205+
public ByValue(long value) {
1206+
super(value);
1207+
}
1208+
11861209
}
11871210

11881211
@FieldOrder({"LowPart", "HighPart"})

0 commit comments

Comments
 (0)