Class ValueTable

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.ValueTable
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ValueTable extends ProxyInstance
VTable for the GValue type.
  • Constructor Details

    • ValueTable

      public ValueTable(MemorySegment address)
      Create a ValueTable proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ValueTable

      public ValueTable(Arena arena)
      Allocate a new ValueTable.
      Parameters:
      arena - to control the memory allocation scope
    • ValueTable

      public ValueTable()
      Allocate a new ValueTable. The memory is allocated with Arena.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 field type
      compare - value for the field compare
      serialize - value for the field serialize
      deserialize - value for the field deserialize
      deserializeWithPspec - value for the field deserializeWithPspec
      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 with Arena.ofAuto().
      Parameters:
      type - value for the field type
      compare - value for the field compare
      serialize - value for the field serialize
      deserialize - value for the field deserialize
      deserializeWithPspec - value for the field deserializeWithPspec
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readType

      public Type readType()
      Read the value of the field type.
      Returns:
      The value of the field type
    • writeType

      public void writeType(Type type)
      Write a value in the field type.
      Parameters:
      type - The new value for the field type
    • readCompare

      public @Nullable ValueCompareFunc readCompare()
      Read the value of the field compare.
      Returns:
      The value of the field compare
    • writeCompare

      public void writeCompare(@Nullable ValueCompareFunc compare, Arena _arena)
      Write a value in the field compare.
      Parameters:
      compare - The new value for the field compare
      _arena - to control the memory allocation scope
    • readSerialize

      public @Nullable ValueSerializeFunc readSerialize()
      Read the value of the field serialize.
      Returns:
      The value of the field serialize
    • writeSerialize

      public void writeSerialize(@Nullable ValueSerializeFunc serialize, Arena _arena)
      Write a value in the field serialize.
      Parameters:
      serialize - The new value for the field serialize
      _arena - to control the memory allocation scope
    • readDeserialize

      public @Nullable ValueDeserializeFunc readDeserialize()
      Read the value of the field deserialize.
      Returns:
      The value of the field deserialize
    • writeDeserialize

      public void writeDeserialize(@Nullable ValueDeserializeFunc deserialize, Arena _arena)
      Write a value in the field deserialize.
      Parameters:
      deserialize - The new value for the field deserialize
      _arena - to control the memory allocation scope
    • readDeserializeWithPspec

      public @Nullable ValueDeserializeWithPSpecFunc readDeserializeWithPspec()
      Read the value of the field deserialize_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 field deserialize_with_pspec.
      Parameters:
      deserializeWithPspec - The new value for the field deserialize_with_pspec
      _arena - to control the memory allocation scope