Package de.intarsys.nativec.type
Class NativeLongLP64
- java.lang.Object
-
- de.intarsys.nativec.type.NativeObject
-
- de.intarsys.nativec.type.NativeSimple
-
- de.intarsys.nativec.type.NativeNumber
-
- de.intarsys.nativec.type.NativeLongLP64
-
- All Implemented Interfaces:
INativeObject
public class NativeLongLP64 extends NativeNumber
A wrapper for the Windows type LONG_PTR. This type has the same size as a pointer but is semantically a simple integer. (same as NativeLong on LP64 platforms size-wise)
-
-
Field Summary
Fields Modifier and Type Field Description static NativeLongLP64TypeMETAThe meta class instance-
Fields inherited from class de.intarsys.nativec.type.NativeObject
DEBUG, handle, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT
-
-
Constructor Summary
Constructors Modifier Constructor Description NativeLongLP64()Create a new wrapperNativeLongLP64(long value)Create a new wrapperprotectedNativeLongLP64(INativeHandle handle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebyteValue()This as a java primitive byte value.static NativeLongLP64createFromAddress(long address)INativeTypegetNativeType()The meta information and behavior for the NativeObject.java.lang.ObjectgetValue()A Java side representation from the memory.intintValue()This as a java primitive int value.longlongValue()This as a java primitive long value.voidsetValue(long value)voidsetValue(java.lang.Object value)Assign (and marshall to memory) the Java side representation.shortshortValue()This as a java primitive short value.java.lang.StringtoString()-
Methods inherited from class de.intarsys.nativec.type.NativeSimple
getByteCount
-
Methods inherited from class de.intarsys.nativec.type.NativeObject
allocate, cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString, toNestedString
-
-
-
-
Field Detail
-
META
public static final NativeLongLP64Type META
The meta class instance
-
-
Constructor Detail
-
NativeLongLP64
public NativeLongLP64()
Create a new wrapper
-
NativeLongLP64
protected NativeLongLP64(INativeHandle handle)
-
NativeLongLP64
public NativeLongLP64(long value)
Create a new wrapper
-
-
Method Detail
-
createFromAddress
public static NativeLongLP64 createFromAddress(long address)
-
byteValue
public byte byteValue()
Description copied from class:NativeNumberThis as a java primitive byte value.- Specified by:
byteValuein classNativeNumber- Returns:
- This as a java primitive byte value.
-
getNativeType
public INativeType getNativeType()
Description copied from class:NativeObjectThe meta information and behavior for the NativeObject.There is exactly one meta instance for all NativeObject instances of a certain type.
- Specified by:
getNativeTypein interfaceINativeObject- Specified by:
getNativeTypein classNativeObject- Returns:
- The meta information and behavior for the NativeObject.
-
getValue
public java.lang.Object getValue()
Description copied from interface:INativeObjectA Java side representation from the memory.- Returns:
- A Java side representation for the
INativeObject.
-
intValue
public int intValue()
Description copied from class:NativeNumberThis as a java primitive int value.- Specified by:
intValuein classNativeNumber- Returns:
- This as a java primitive int value.
-
longValue
public long longValue()
Description copied from class:NativeNumberThis as a java primitive long value.- Specified by:
longValuein classNativeNumber- Returns:
- This as a java primitive long value.
-
setValue
public void setValue(long value)
-
setValue
public void setValue(java.lang.Object value)
Description copied from interface:INativeObjectAssign (and marshall to memory) the Java side representation.- Parameters:
value- The new Java value.
-
shortValue
public short shortValue()
Description copied from class:NativeNumberThis as a java primitive short value.- Specified by:
shortValuein classNativeNumber- Returns:
- This as a java primitive short value.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-