public class CString
extends com.sun.jna.PointerType
Either call toString() or free(). Both methods make
sure to reclaim the memory allocated for the string by calling
Native.free.
| Constructor and Description |
|---|
CString() |
CString(com.sun.jna.Pointer p) |
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Free the memory used by this C-String
|
CString |
fromNative(java.lang.Object nativeValue,
com.sun.jna.FromNativeContext context) |
java.lang.String |
toString()
Returns a String representing the value of this C-String
|
public java.lang.String toString()
Side-effect: frees the memory of the C-String.
toString in class com.sun.jna.PointerTypepublic CString fromNative(java.lang.Object nativeValue, com.sun.jna.FromNativeContext context)
fromNative in interface com.sun.jna.NativeMappedfromNative in class com.sun.jna.PointerTypepublic void free()