Package org.freedesktop.harfbuzz
Class UserDataKey
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.UserDataKey
-
Constructor Summary
ConstructorDescriptionAllocate a new UserDataKey.UserDataKey
(byte unused) Allocate a new UserDataKey with the fields set to the provided values.UserDataKey
(byte unused, Arena arena) Allocate a new UserDataKey with the fields set to the provided values.UserDataKey
(Arena arena) Allocate a new UserDataKey.UserDataKey
(MemorySegment address) Create a UserDataKey proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the UserDataKey classbyte
Read the value of the fieldunused
.void
writeUnused
(byte unused) Write a value in the fieldunused
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
UserDataKey
Create a UserDataKey proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
UserDataKey
Allocate a new UserDataKey.- Parameters:
arena
- to control the memory allocation scope
-
UserDataKey
public UserDataKey()Allocate a new UserDataKey. The memory is allocated withArena.ofAuto()
. -
UserDataKey
Allocate a new UserDataKey with the fields set to the provided values.- Parameters:
unused
- value for the fieldunused
arena
- to control the memory allocation scope
-
UserDataKey
public UserDataKey(byte unused) Allocate a new UserDataKey with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
unused
- value for the fieldunused
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readUnused
public byte readUnused()Read the value of the fieldunused
.- Returns:
- The value of the field
unused
-
writeUnused
public void writeUnused(byte unused) Write a value in the fieldunused
.- Parameters:
unused
- The new value for the fieldunused
-