Package org.freedesktop.gstreamer.gst
Class TimedValue
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.TimedValue
-
Constructor Summary
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.Read the value of the fieldtimestamp
.double
Read the value of the fieldvalue
.void
writeTimestamp
(ClockTime timestamp) Write a value in the fieldtimestamp
.void
writeValue
(double value) Write a value in the fieldvalue
.Methods inherited from class io.github.jwharm.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 fieldtimestamp
value
- 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
-