Package org.freedesktop.gstreamer.gst
Class FormatDefinition
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.FormatDefinition
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new FormatDefinition.FormatDefinition(Arena arena) Allocate a new FormatDefinition.FormatDefinition(MemorySegment address) Create a FormatDefinition proxy instance for the provided memory address.FormatDefinition(Format value, String nick, String description, Quark quark) Allocate a new FormatDefinition with the fields set to the provided values.Allocate a new FormatDefinition 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 fielddescription.readNick()Read the value of the fieldnick.Read the value of the fieldquark.Read the value of the fieldvalue.voidwriteDescription(String description, Arena _arena) Write a value in the fielddescription.voidWrite a value in the fieldnick.voidwriteQuark(Quark quark) Write a value in the fieldquark.voidwriteValue(Format value) Write a value in the fieldvalue.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
FormatDefinition
Create a FormatDefinition proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
FormatDefinition
Allocate a new FormatDefinition.- Parameters:
arena- to control the memory allocation scope
-
FormatDefinition
public FormatDefinition()Allocate a new FormatDefinition. The memory is allocated withArena.ofAuto(). -
FormatDefinition
Allocate a new FormatDefinition with the fields set to the provided values.- Parameters:
value- value for the fieldvaluenick- value for the fieldnickdescription- value for the fielddescriptionquark- value for the fieldquarkarena- to control the memory allocation scope
-
FormatDefinition
Allocate a new FormatDefinition with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
value- value for the fieldvaluenick- value for the fieldnickdescription- value for the fielddescriptionquark- value for the fieldquark
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readValue
-
writeValue
Write a value in the fieldvalue.- Parameters:
value- The new value for the fieldvalue
-
readNick
-
writeNick
-
readDescription
Read the value of the fielddescription.- Returns:
- The value of the field
description
-
writeDescription
-
readQuark
-
writeQuark
Write a value in the fieldquark.- Parameters:
quark- The new value for the fieldquark
-