Javolution 6.0.0 java
|
Public Member Functions | |
Reference32 () | |
void | set (S struct) |
S | get () |
int | value () |
boolean | isUpToDate () |
final Struct | struct () |
final int | offset () |
final int | bitIndex () |
final int | bitLength () |
Package Functions | |
final int | get (int wordSize, int word) |
final long | get (int wordSize, long word) |
final int | set (int value, int wordSize, int word) |
final long | set (long value, int wordSize, long word) |
Private Attributes | |
S | _struct |
final int | _offset |
final int | _bitIndex |
final int | _bitLength |
This class represents a 32 bits reference (C/C++ pointer) to a Struct object (other types may require a Struct wrapper).
Note: For references which can be externally modified, an application may want to check the up-to-date status of the reference. For out-of-date references, a Struct can be created at the address specified by value (using JNI) and the reference set accordingly.
Definition at line 1497 of file Struct.java.
javolution.io.Struct.Reference32< S extends Struct >.Reference32 | ( | ) |
Definition at line 1501 of file Struct.java.
|
inherited |
Holds the bit offset of this member (if any). The actual position of the bits data depends upon the endianess and the word size.
Definition at line 998 of file Struct.java.
References javolution.io.Struct.Member._bitIndex.
Referenced by javolution.io.Struct.Member.get(), javolution.io.Struct.BitField.longValue(), javolution.io.Struct.Member.set(), and javolution.io.Struct.BitField.set().
|
inherited |
Returns the number of bits in this member. Can be zero if this member is used to force the next member to the next word boundary.
Definition at line 1008 of file Struct.java.
References javolution.io.Struct.Member._bitLength.
Referenced by javolution.io.Struct.Member.get(), javolution.io.Struct.Bool.get(), javolution.io.Struct.Signed8.get(), javolution.io.Struct.Unsigned8.get(), javolution.io.Struct.Signed16.get(), javolution.io.Struct.Unsigned16.get(), javolution.io.Struct.Signed32.get(), javolution.io.Struct.Unsigned32.get(), javolution.io.Struct.Signed64.get(), javolution.io.Struct.BitField.longValue(), javolution.io.Struct.Member.Member(), javolution.io.Struct.Member.set(), javolution.io.Struct.Bool.set(), javolution.io.Struct.Signed8.set(), javolution.io.Struct.Unsigned8.set(), javolution.io.Struct.Signed16.set(), javolution.io.Struct.Unsigned16.set(), javolution.io.Struct.Signed32.set(), javolution.io.Struct.Unsigned32.set(), javolution.io.Struct.Signed64.set(), and javolution.io.Struct.BitField.set().
S javolution.io.Struct.Reference32< S extends Struct >.get | ( | ) |
Definition at line 1515 of file Struct.java.
References javolution.io.Struct.Reference32< S extends Struct >._struct.
|
packageinherited |
Definition at line 1013 of file Struct.java.
References javolution.io.Struct.Member.bitIndex(), javolution.io.Struct.Member.bitLength(), and javolution.io.Struct.byteOrder().
|
packageinherited |
Definition at line 1034 of file Struct.java.
References javolution.io.Struct.Member.bitIndex(), javolution.io.Struct.Member.bitLength(), and javolution.io.Struct.byteOrder().
boolean javolution.io.Struct.Reference32< S extends Struct >.isUpToDate | ( | ) |
Definition at line 1524 of file Struct.java.
References javolution.io.Struct.Reference32< S extends Struct >._struct, javolution.io.Struct.getByteBuffer(), javolution.io.Struct.getByteBufferPosition(), and javolution.io.Struct.Member.offset().
|
inherited |
Returns the byte offset of this member in its struct. Equivalent to C/C++ offsetof(struct(), this)
Definition at line 989 of file Struct.java.
References javolution.io.Struct.Member._offset.
Referenced by javolution.io.Struct.UTF8String.get(), javolution.io.Struct.Bool.get(), javolution.io.Struct.Signed8.get(), javolution.io.Struct.Unsigned8.get(), javolution.io.Struct.Signed16.get(), javolution.io.Struct.Unsigned16.get(), javolution.io.Struct.Signed32.get(), javolution.io.Struct.Unsigned32.get(), javolution.io.Struct.Signed64.get(), javolution.io.Struct.Float32.get(), javolution.io.Struct.Float64.get(), javolution.io.Struct.Enum8< T extends Enum< T >.get(), javolution.io.Struct.Enum16< T extends Enum< T >.get(), javolution.io.Struct.Enum32< T extends Enum< T >.get(), javolution.io.Struct.Enum64< T extends Enum< T >.get(), javolution.io.Struct.Reference32< S extends Struct >.isUpToDate(), javolution.io.Struct.Reference64< S extends Struct >.isUpToDate(), javolution.io.Struct.BitField.longValue(), javolution.io.Struct.UTF8String.set(), javolution.io.Struct.Bool.set(), javolution.io.Struct.Signed8.set(), javolution.io.Struct.Unsigned8.set(), javolution.io.Struct.Signed16.set(), javolution.io.Struct.Unsigned16.set(), javolution.io.Struct.Signed32.set(), javolution.io.Struct.Unsigned32.set(), javolution.io.Struct.Signed64.set(), javolution.io.Struct.BitField.set(), javolution.io.Struct.Float32.set(), javolution.io.Struct.Float64.set(), javolution.io.Struct.Reference32< S extends Struct >.set(), javolution.io.Struct.Reference64< S extends Struct >.set(), javolution.io.Struct.Enum8< T extends Enum< T >.set(), javolution.io.Struct.Enum16< T extends Enum< T >.set(), javolution.io.Struct.Enum32< T extends Enum< T >.set(), javolution.io.Struct.Enum64< T extends Enum< T >.set(), javolution.io.Struct.Reference32< S extends Struct >.value(), and javolution.io.Struct.Reference64< S extends Struct >.value().
|
packageinherited |
Definition at line 1023 of file Struct.java.
References javolution.io.Struct.Member.bitIndex(), javolution.io.Struct.Member.bitLength(), and javolution.io.Struct.byteOrder().
|
packageinherited |
Definition at line 1044 of file Struct.java.
References javolution.io.Struct.Member.bitIndex(), javolution.io.Struct.Member.bitLength(), and javolution.io.Struct.byteOrder().
void javolution.io.Struct.Reference32< S extends Struct >.set | ( | S | struct | ) |
Definition at line 1505 of file Struct.java.
References javolution.io.Struct.Reference32< S extends Struct >._struct, javolution.io.Struct.address(), javolution.io.Struct.getByteBuffer(), javolution.io.Struct.getByteBufferPosition(), and javolution.io.Struct.Member.offset().
|
inherited |
Returns the outer struct container.
Definition at line 979 of file Struct.java.
int javolution.io.Struct.Reference32< S extends Struct >.value | ( | ) |
Definition at line 1519 of file Struct.java.
References javolution.io.Struct.getByteBuffer(), javolution.io.Struct.getByteBufferPosition(), and javolution.io.Struct.Member.offset().
|
privateinherited |
Holds the relative bit offset of this member to its struct offset.
Definition at line 903 of file Struct.java.
Referenced by javolution.io.Struct.Member.bitIndex(), and javolution.io.Struct.Member.Member().
|
privateinherited |
Holds the bit length of this member.
Definition at line 907 of file Struct.java.
Referenced by javolution.io.Struct.Member.bitLength(), and javolution.io.Struct.Member.Member().
|
privateinherited |
Holds the relative offset (in bytes) of this member within its struct.
Definition at line 899 of file Struct.java.
Referenced by javolution.io.Struct.Member.Member(), and javolution.io.Struct.Member.offset().
|
private |
Definition at line 1499 of file Struct.java.
Referenced by javolution.io.Struct.Reference32< S extends Struct >.get(), javolution.io.Struct.Reference32< S extends Struct >.isUpToDate(), and javolution.io.Struct.Reference32< S extends Struct >.set().