Class ValueArray
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.freedesktop.gstreamer.gst.ValueArray
- All Implemented Interfaces:
Proxy
A fundamental type that describes an ordered list of
GValue-
Constructor Summary
ConstructorsConstructorDescriptionValueArray(MemorySegment address) Create a ValueArray instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendAndTakeValue(Value value, Value appendValue) AppendsappendValueto the GstValueArray invalue.static voidappendValue(Value value, Value appendValue) AppendsappendValueto the GstValueArray invalue.protected ValueArrayasParent()Return this instance as if it were its parent type.static MemoryLayoutThe memory layout of the native struct.static intGets the number of values contained invalue.static @Nullable TypegetType()Get the GType of the ValueArray class.static ValueGets the value that is a member of the array contained invalueand has the indexindex.static ValueInitializes and pre-allocates aGValueof typeGST_TYPE_ARRAY.static voidprependValue(Value value, Value prependValue) PrependsprependValueto the GstValueArray invalue.Methods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ValueArray
Create a ValueArray instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code.- Returns:
- the instance as if it were its parent type
-
appendAndTakeValue
-
appendValue
-
getSize
Gets the number of values contained invalue.- Parameters:
value- aGValueof typeGST_TYPE_ARRAY- Returns:
- the number of values
-
getValue
-
init
Initializes and pre-allocates aGValueof typeGST_TYPE_ARRAY.- Parameters:
value- A zero-filled (uninitialized)GValuestructureprealloc- The number of entries to pre-allocate in the array- Returns:
- The
GValuestructure that has been passed in - Since:
- 1.18
-
prependValue
-