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
ConstructorsModifierConstructorDescriptionprotectedIntegerAlias(TypeAlias type) protectedIntegerAlias(TypeAlias type, StructLayout.Offset offset) -
Method Summary
Modifier and TypeMethodDescriptionfinal longGets the value for this field.intReturns aintrepresentation of thisNumber.longReturns alongrepresentation of thisNumber.voidvoidSets the field to a new value.Methods inherited from class jnr.ffi.StructLayout.NumberField
byteValue, doubleValue, floatValue, shortValue, toStringMethods inherited from class jnr.ffi.StructLayout.Field
enclosing, offset
-
Constructor Details
-
IntegerAlias
-
IntegerAlias
-
-
Method Details
-
set
Description copied from class:StructLayout.NumberFieldSets the field to a new value.- Specified by:
setin 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.NumberFieldReturns aintrepresentation of thisNumber.- Specified by:
intValuein classStructLayout.NumberField- Parameters:
ptr- The pointer to the field.- Returns:
- a
intvalue for thisNumber.
-
longValue
Description copied from class:StructLayout.NumberFieldReturns alongrepresentation of thisNumber.- Overrides:
longValuein classStructLayout.NumberField- Parameters:
ptr- The pointer to the field.- Returns:
- a
longvalue for thisNumber.
-