Package jnr.ffi
Class StructLayout.IntegerAlias
java.lang.Object
jnr.ffi.StructLayout.Field
jnr.ffi.StructLayout.NumberField
jnr.ffi.StructLayout.IntegerAlias
- Direct Known Subclasses:
StructLayout.blkcnt_t
,StructLayout.blksize_t
,StructLayout.caddr_t
,StructLayout.clock_t
,StructLayout.dev_t
,StructLayout.fsblkcnt_t
,StructLayout.fsfilcnt_t
,StructLayout.gid_t
,StructLayout.id_t
,StructLayout.in_addr_t
,StructLayout.in_port_t
,StructLayout.ino_t
,StructLayout.ino64_t
,StructLayout.int16_t
,StructLayout.int32_t
,StructLayout.int64_t
,StructLayout.int8_t
,StructLayout.intptr_t
,StructLayout.key_t
,StructLayout.mode_t
,StructLayout.nlink_t
,StructLayout.off_t
,StructLayout.pid_t
,StructLayout.rlim_t
,StructLayout.sa_family_t
,StructLayout.size_t
,StructLayout.socklen_t
,StructLayout.ssize_t
,StructLayout.swblk_t
,StructLayout.time_t
,StructLayout.u_int16_t
,StructLayout.u_int32_t
,StructLayout.u_int64_t
,StructLayout.u_int8_t
,StructLayout.uid_t
,StructLayout.uintptr_t
- Enclosing class:
StructLayout
-
Field Summary
Fields inherited from class jnr.ffi.StructLayout.NumberField
type
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
IntegerAlias
(TypeAlias type) protected
IntegerAlias
(TypeAlias type, StructLayout.Offset offset) -
Method Summary
Modifier and TypeMethodDescriptionfinal long
Gets the value for this field.int
Returns aint
representation of thisNumber
.long
Returns along
representation of thisNumber
.void
void
Sets the field to a new value.Methods inherited from class jnr.ffi.StructLayout.NumberField
byteValue, doubleValue, floatValue, shortValue, toString
Methods inherited from class jnr.ffi.StructLayout.Field
enclosing, offset
-
Constructor Details
-
IntegerAlias
-
IntegerAlias
-
-
Method Details
-
set
Description copied from class:StructLayout.NumberField
Sets the field to a new value.- Specified by:
set
in classStructLayout.NumberField
- Parameters:
ptr
- The pointer to the field.value
- The new value.
-
set
-
get
Gets the value for this field.- Parameters:
ptr
- The pointer to the field.- Returns:
- a long.
-
intValue
Description copied from class:StructLayout.NumberField
Returns aint
representation of thisNumber
.- Specified by:
intValue
in classStructLayout.NumberField
- Parameters:
ptr
- The pointer to the field.- Returns:
- a
int
value for thisNumber
.
-
longValue
Description copied from class:StructLayout.NumberField
Returns along
representation of thisNumber
.- Overrides:
longValue
in classStructLayout.NumberField
- Parameters:
ptr
- The pointer to the field.- Returns:
- a
long
value for thisNumber
.
-