Package org.freedesktop.gstreamer.gst
Class PadProbeInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.PadProbeInfo
-
Constructor Summary
ConstructorDescriptionAllocate 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 TypeMethodDescriptiongetEvent()
static MemoryLayout
The memory layout of the native struct.getQuery()
readData()
Read the value of the fielddata
.int
readId()
Read the value of the fieldid
.long
Read the value of the fieldoffset
.int
readSize()
Read the value of the fieldsize
.readType()
Read the value of the fieldtype
.void
writeData
(MemorySegment data) Write a value in the fielddata
.void
writeId
(int id) Write a value in the fieldid
.void
writeOffset
(long offset) Write a value in the fieldoffset
.void
writeSize
(int size) Write a value in the fieldsize
.void
writeType
(Set<PadProbeType> type) Write a value in the fieldtype
.Methods inherited from class io.github.jwharm.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 fieldtype
id
- value for the fieldid
data
- value for the fielddata
offset
- value for the fieldoffset
size
- value for the fieldsize
arena
- 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 fieldtype
id
- value for the fieldid
data
- value for the fielddata
offset
- value for the fieldoffset
size
- 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
-