Package org.freedesktop.gstreamer.gst
Class PadProbeInfo
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.PadProbeInfo
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new PadProbeInfo.PadProbeInfo(Arena arena) Allocate a new PadProbeInfo.PadProbeInfo(MemorySegment address) Create a PadProbeInfo proxy instance for the provided memory address.PadProbeInfo(Set<PadProbeType> type, int id, MemorySegment data, long offset, int size) Allocate a new PadProbeInfo with the fields set to the provided values.PadProbeInfo(Set<PadProbeType> type, int id, MemorySegment data, long offset, int size, Arena arena) Allocate a new PadProbeInfo with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescription@Nullable Buffer@Nullable BufferList@Nullable EventgetEvent()static MemoryLayoutThe memory layout of the native struct.@Nullable QuerygetQuery()readData()Read the value of the fielddata.intreadId()Read the value of the fieldid.longRead the value of the fieldoffset.intreadSize()Read the value of the fieldsize.readType()Read the value of the fieldtype.voidwriteData(MemorySegment data) Write a value in the fielddata.voidwriteId(int id) Write a value in the fieldid.voidwriteOffset(long offset) Write a value in the fieldoffset.voidwriteSize(int size) Write a value in the fieldsize.voidwriteType(Set<PadProbeType> type) Write a value in the fieldtype.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
PadProbeInfo
Create a PadProbeInfo proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
PadProbeInfo
Allocate a new PadProbeInfo.- Parameters:
arena- to control the memory allocation scope
-
PadProbeInfo
public PadProbeInfo()Allocate a new PadProbeInfo. The memory is allocated withArena.ofAuto(). -
PadProbeInfo
public PadProbeInfo(Set<PadProbeType> type, int id, MemorySegment data, long offset, int size, Arena arena) Allocate a new PadProbeInfo with the fields set to the provided values.- Parameters:
type- value for the fieldtypeid- value for the fieldiddata- value for the fielddataoffset- value for the fieldoffsetsize- value for the fieldsizearena- to control the memory allocation scope
-
PadProbeInfo
Allocate a new PadProbeInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
type- value for the fieldtypeid- value for the fieldiddata- value for the fielddataoffset- value for the fieldoffsetsize- value for the fieldsize
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readType
Read the value of the fieldtype.- Returns:
- The value of the field
type
-
writeType
Write a value in the fieldtype.- Parameters:
type- The new value for the fieldtype
-
readId
public int readId()Read the value of the fieldid.- Returns:
- The value of the field
id
-
writeId
public void writeId(int id) Write a value in the fieldid.- Parameters:
id- The new value for the fieldid
-
readData
Read the value of the fielddata.- Returns:
- The value of the field
data
-
writeData
Write a value in the fielddata.- Parameters:
data- The new value for the fielddata
-
readOffset
public long readOffset()Read the value of the fieldoffset.- Returns:
- The value of the field
offset
-
writeOffset
public void writeOffset(long offset) Write a value in the fieldoffset.- Parameters:
offset- The new value for the fieldoffset
-
readSize
public int readSize()Read the value of the fieldsize.- Returns:
- The value of the field
size
-
writeSize
public void writeSize(int size) Write a value in the fieldsize.- Parameters:
size- The new value for the fieldsize
-
getBuffer
-
getBufferList
-
getEvent
-
getQuery
-