Package com.sun.jna
Class NativeLong
java.lang.Object
java.lang.Number
com.sun.jna.IntegerType
com.sun.jna.NativeLong
- All Implemented Interfaces:
- NativeMapped,- Serializable
- Direct Known Subclasses:
- CoreFoundation.CFIndex,- CoreFoundation.CFTypeID,- WinNT.HRESULT,- X11.VisualID,- X11.XID
Represents the 
long C data type, which may be 32 or 64 bits
 on *nix-based systems.- Author:
- wmeissner@gmail.com
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a zero-valued NativeLong.NativeLong(long value) Create a NativeLong with the given value.NativeLong(long value, boolean unsigned) Create a NativeLong with the given value, optionally unsigned.
- 
Method SummaryMethods inherited from class com.sun.jna.IntegerTypecompare, compare, compare, doubleValue, equals, floatValue, fromNative, hashCode, intValue, longValue, nativeType, setValue, toNative, toStringMethods inherited from class java.lang.NumberbyteValue, shortValue
- 
Field Details- 
SIZEpublic static final int SIZESize of a native long, in bytes.
 
- 
- 
Constructor Details- 
NativeLongpublic NativeLong()Create a zero-valued NativeLong.
- 
NativeLongpublic NativeLong(long value) Create a NativeLong with the given value.
- 
NativeLongpublic NativeLong(long value, boolean unsigned) Create a NativeLong with the given value, optionally unsigned.
 
-