public class NativeReference extends Object
int to store native id compatible with legacy style llapi. To be updated to
long, alongside llapi, for future compatibility with 64-bit platform.| Constructor and Description |
|---|
NativeReference(int nativeId,
int closeId)
Create a new NativeReference
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNativeId()
Return a raw native id
This method must only be used to pass the nativeId managed by this class to a native function.
|
public NativeReference(int nativeId,
int closeId)
nativeId - Identifier of the native context to be managedcloseId - Identifier of the native close function to call when this instance is garbage collectedpublic int getNativeId()