Package org.freedesktop.gstreamer.gst
Class ValueTable
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.ValueTable
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.@Nullable ValueCompareFuncRead the value of the fieldcompare.@Nullable ValueDeserializeFuncRead the value of the fielddeserialize.@Nullable ValueDeserializeWithPSpecFuncRead the value of the fielddeserialize_with_pspec.@Nullable ValueSerializeFuncRead the value of the fieldserialize.readType()Read the value of the fieldtype.voidwriteCompare(@Nullable ValueCompareFunc compare, Arena _arena) Write a value in the fieldcompare.voidwriteDeserialize(@Nullable ValueDeserializeFunc deserialize, Arena _arena) Write a value in the fielddeserialize.voidwriteDeserializeWithPspec(@Nullable ValueDeserializeWithPSpecFunc deserializeWithPspec, Arena _arena) Write a value in the fielddeserialize_with_pspec.voidwriteSerialize(@Nullable ValueSerializeFunc serialize, Arena _arena) Write a value in the fieldserialize.voidWrite a value in the fieldtype.Methods inherited from class org.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 fieldtypecompare- value for the fieldcompareserialize- value for the fieldserializedeserialize- value for the fielddeserializedeserializeWithPspec- value for the fielddeserializeWithPspecarena- 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 fieldtypecompare- value for the fieldcompareserialize- value for the fieldserializedeserialize- value for the fielddeserializedeserializeWithPspec- 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(@Nullable 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
-