Package org.freedesktop.gstreamer.gst
Class TimedValue
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.TimedValue
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new TimedValue.TimedValue(Arena arena) Allocate a new TimedValue.TimedValue(MemorySegment address) Create a TimedValue proxy instance for the provided memory address.TimedValue(ClockTime timestamp, double value) Allocate a new TimedValue with the fields set to the provided values.TimedValue(ClockTime timestamp, double value, Arena arena) Allocate a new TimedValue with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.Read the value of the fieldtimestamp.doubleRead the value of the fieldvalue.voidwriteTimestamp(ClockTime timestamp) Write a value in the fieldtimestamp.voidwriteValue(double value) Write a value in the fieldvalue.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
TimedValue
Create a TimedValue proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
TimedValue
Allocate a new TimedValue.- Parameters:
arena- to control the memory allocation scope
-
TimedValue
public TimedValue()Allocate a new TimedValue. The memory is allocated withArena.ofAuto(). -
TimedValue
-
TimedValue
Allocate a new TimedValue with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
timestamp- value for the fieldtimestampvalue- value for the fieldvalue
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readTimestamp
Read the value of the fieldtimestamp.- Returns:
- The value of the field
timestamp
-
writeTimestamp
Write a value in the fieldtimestamp.- Parameters:
timestamp- The new value for the fieldtimestamp
-
readValue
public double readValue()Read the value of the fieldvalue.- Returns:
- The value of the field
value
-
writeValue
public void writeValue(double value) Write a value in the fieldvalue.- Parameters:
value- The new value for the fieldvalue
-