- java.lang.Object
-
- jnr.ffi.Struct.Member
-
- jnr.ffi.Struct.NumberField
-
- jnr.ffi.Struct.Address
-
- Enclosing class:
- Struct
public class Struct.Address extends Struct.NumberField
Represents a native memory address.
-
-
Field Summary
-
Fields inherited from class jnr.ffi.Struct.NumberField
type
-
-
Constructor Summary
Constructors Constructor Description Address()Creates a newAddressfield.Address(Struct.Offset offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Addressget()Reads anAddressvalue from the struct.intintValue()Returns an integer representation of this address.longlongValue()Returns anlongrepresentation of this address.voidset(Number value)Sets the field to a new value.voidset(Address value)Puts aAddressvalue into the native memory.StringtoString()Returns a string representation of thisAddress.-
Methods inherited from class jnr.ffi.Struct.NumberField
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct
-
-
-
-
Constructor Detail
-
Address
public Address()
Creates a newAddressfield.
-
Address
public Address(Struct.Offset offset)
-
-
Method Detail
-
set
public final void set(Address value)
Puts aAddressvalue into the native memory.- Parameters:
value- the value to write.
-
set
public void set(Number value)
Description copied from class:Struct.NumberFieldSets the field to a new value.- Specified by:
setin classStruct.NumberField- Parameters:
value- The new value.
-
intValue
public final int intValue()
Returns an integer representation of this address.- Specified by:
intValuein classStruct.NumberField- Returns:
- an integer value for this address.
-
longValue
public final long longValue()
Returns anlongrepresentation of this address.- Overrides:
longValuein classStruct.NumberField- Returns:
- an
longvalue for this address.
-
toString
public final String toString()
Returns a string representation of thisAddress.- Overrides:
toStringin classStruct.NumberField- Returns:
- a string representation of this
Address.
-
-