public class NativeString extends Object
This class takes care of freeing the memory that was natively allocated for the string.
Constructor and Description |
---|
NativeString() |
Modifier and Type | Method and Description |
---|---|
static String |
getNativeString(LibVlc libvlc,
com.sun.jna.Pointer pointer)
Get a String from a native string pointer, freeing the native string pointer when done.
|
public static final String getNativeString(LibVlc libvlc, com.sun.jna.Pointer pointer)
If the native string pointer is not freed then a native memory leak will occur.
pointer
- pointer to native string, may be null
null
if the pointer was null
Copyright © 2009-2012 Caprica Software Limited. All Rights Reserved.