Package org.gnome.glib
Class RefString
A typedef for a reference-counted string. A pointer to a
GRefString
can be
treated like a standard char*
array by all code, but can additionally have
g_ref_string_*()
methods called on it. g_ref_string_*()
methods cannot be
called on char*
arrays not allocated using g_ref_string_new().
If using GRefString
with autocleanups, g_autoptr() must be used rather than
g_autofree(), so that the reference counting metadata is also freed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RefString[]
fromNativeArray
(MemorySegment address, long length, boolean free) Methods inherited from class io.github.jwharm.javagi.base.Alias
equals, getAddressValues, getBooleanValues, getByteValues, getCharacterValues, getDoubleValues, getFloatValues, getIntegerValues, getLongValues, getShortValues, getValue, hashCode, setValue
-
Constructor Details
-
RefString
public RefString(byte value) Create a new RefString with the provided value
-
-
Method Details
-
fromNativeArray
-