Package org.freedesktop.harfbuzz
Class UserDataKey
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.UserDataKey
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the UserDataKey classbyteRead the value of the fieldunused.voidwriteUnused(byte unused) Write a value in the fieldunused.Methods inherited from class org.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 fieldunusedarena- 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
-