Package org.gnome.gio
Class FileAttributeInfo
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.FileAttributeInfo
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new FileAttributeInfo.FileAttributeInfo(Arena arena) Allocate a new FileAttributeInfo.FileAttributeInfo(MemorySegment address) Create a FileAttributeInfo proxy instance for the provided memory address.FileAttributeInfo(String name, FileAttributeType type, Set<FileAttributeInfoFlags> flags) Allocate a new FileAttributeInfo with the fields set to the provided values.FileAttributeInfo(String name, FileAttributeType type, Set<FileAttributeInfoFlags> flags, Arena arena) Allocate a new FileAttributeInfo 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 fieldflags.readName()Read the value of the fieldname.readType()Read the value of the fieldtype.voidwriteFlags(Set<FileAttributeInfoFlags> flags) Write a value in the fieldflags.voidWrite a value in the fieldname.voidwriteType(FileAttributeType type) Write a value in the fieldtype.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
FileAttributeInfo
Create a FileAttributeInfo proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
FileAttributeInfo
Allocate a new FileAttributeInfo.- Parameters:
arena- to control the memory allocation scope
-
FileAttributeInfo
public FileAttributeInfo()Allocate a new FileAttributeInfo. The memory is allocated withArena.ofAuto(). -
FileAttributeInfo
public FileAttributeInfo(String name, FileAttributeType type, Set<FileAttributeInfoFlags> flags, Arena arena) Allocate a new FileAttributeInfo with the fields set to the provided values.- Parameters:
name- value for the fieldnametype- value for the fieldtypeflags- value for the fieldflagsarena- to control the memory allocation scope
-
FileAttributeInfo
Allocate a new FileAttributeInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
name- value for the fieldnametype- value for the fieldtypeflags- value for the fieldflags
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readName
-
writeName
-
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
-
readFlags
Read the value of the fieldflags.- Returns:
- The value of the field
flags
-
writeFlags
Write a value in the fieldflags.- Parameters:
flags- The new value for the fieldflags
-