Package org.freedesktop.gstreamer.gst
Class ValueTable
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.ValueTable
-
Constructor Summary
ConstructorDescriptionAllocate a new ValueTable.ValueTable
(Arena arena) Allocate a new ValueTable.ValueTable
(MemorySegment address) Create a ValueTable proxy instance for the provided memory address.ValueTable
(Type type, ValueCompareFunc compare, ValueSerializeFunc serialize, ValueDeserializeFunc deserialize, ValueDeserializeWithPSpecFunc deserializeWithPspec) Allocate a new ValueTable with the fields set to the provided values.ValueTable
(Type type, ValueCompareFunc compare, ValueSerializeFunc serialize, ValueDeserializeFunc deserialize, ValueDeserializeWithPSpecFunc deserializeWithPspec, Arena arena) Allocate a new ValueTable with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.Read the value of the fieldcompare
.Read the value of the fielddeserialize
.Read the value of the fielddeserialize_with_pspec
.Read the value of the fieldserialize
.readType()
Read the value of the fieldtype
.void
writeCompare
(ValueCompareFunc compare, Arena _arena) Write a value in the fieldcompare
.void
writeDeserialize
(ValueDeserializeFunc deserialize, Arena _arena) Write a value in the fielddeserialize
.void
writeDeserializeWithPspec
(ValueDeserializeWithPSpecFunc deserializeWithPspec, Arena _arena) Write a value in the fielddeserialize_with_pspec
.void
writeSerialize
(ValueSerializeFunc serialize, Arena _arena) Write a value in the fieldserialize
.void
Write a value in the fieldtype
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ValueTable
Create a ValueTable proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
ValueTable
Allocate a new ValueTable.- Parameters:
arena
- to control the memory allocation scope
-
ValueTable
public ValueTable()Allocate a new ValueTable. The memory is allocated withArena.ofAuto()
. -
ValueTable
public ValueTable(Type type, ValueCompareFunc compare, ValueSerializeFunc serialize, ValueDeserializeFunc deserialize, ValueDeserializeWithPSpecFunc deserializeWithPspec, Arena arena) Allocate a new ValueTable with the fields set to the provided values.- Parameters:
type
- value for the fieldtype
compare
- value for the fieldcompare
serialize
- value for the fieldserialize
deserialize
- value for the fielddeserialize
deserializeWithPspec
- value for the fielddeserializeWithPspec
arena
- to control the memory allocation scope
-
ValueTable
public ValueTable(Type type, ValueCompareFunc compare, ValueSerializeFunc serialize, ValueDeserializeFunc deserialize, ValueDeserializeWithPSpecFunc deserializeWithPspec) Allocate a new ValueTable with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
type
- value for the fieldtype
compare
- value for the fieldcompare
serialize
- value for the fieldserialize
deserialize
- value for the fielddeserialize
deserializeWithPspec
- value for the fielddeserializeWithPspec
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readType
-
writeType
Write a value in the fieldtype
.- Parameters:
type
- The new value for the fieldtype
-
readCompare
Read the value of the fieldcompare
.- Returns:
- The value of the field
compare
-
writeCompare
Write a value in the fieldcompare
.- Parameters:
compare
- The new value for the fieldcompare
_arena
- to control the memory allocation scope
-
readSerialize
Read the value of the fieldserialize
.- Returns:
- The value of the field
serialize
-
writeSerialize
Write a value in the fieldserialize
.- Parameters:
serialize
- The new value for the fieldserialize
_arena
- to control the memory allocation scope
-
readDeserialize
Read the value of the fielddeserialize
.- Returns:
- The value of the field
deserialize
-
writeDeserialize
Write a value in the fielddeserialize
.- Parameters:
deserialize
- The new value for the fielddeserialize
_arena
- to control the memory allocation scope
-
readDeserializeWithPspec
Read the value of the fielddeserialize_with_pspec
.- Returns:
- The value of the field
deserialize_with_pspec
-
writeDeserializeWithPspec
public void writeDeserializeWithPspec(ValueDeserializeWithPSpecFunc deserializeWithPspec, Arena _arena) Write a value in the fielddeserialize_with_pspec
.- Parameters:
deserializeWithPspec
- The new value for the fielddeserialize_with_pspec
_arena
- to control the memory allocation scope
-