|
decompiler 1.0.0
|
Description of the bitfields covered by a Varnode. More...
#include <bitfield.hh>
Public Member Functions | |
| BitFieldNodeState (const BitRange &used, Varnode *vn, const TypeBitField *fld) | |
| Constructor to follow a field. | |
| BitFieldNodeState (const BitRange &used, Varnode *vn, int4 leastSig, int4 numBits) | |
| Constructor for a hole. | |
| BitFieldNodeState (const BitFieldNodeState ©, const BitRange &newField, Varnode *vn, bool sgnExt) | |
| bool | isFieldAligned (void) const |
| Can the current Varnode be treated as the isolated bitfield. | |
| bool | doesSignExtensionMatch (void) const |
| Return true if the signedness of the field matches the extension used to extract it. | |
Public Attributes | |
| BitRange | bitsUsed |
| Bits being used from this Varnode. | |
| BitRange | bitsField |
| Bits from bit-field being followed. | |
| Varnode * | node |
| Varnode holding bitfields. | |
| const TypeBitField * | field |
| Bit-field being followed. | |
| int4 | origLeastSigBit |
| Original position of least significant bit. | |
| bool | isSignExtended |
| Bitfield has been sign-extended into node. | |
Description of the bitfields covered by a Varnode.
| ghidra::BitFieldNodeState::BitFieldNodeState | ( | const BitFieldNodeState & | copy, |
| const BitRange & | newField, | ||
| Varnode * | vn, | ||
| bool | sgnExt | ||
| ) |
Copy constructor with new bitsField
Copy another state, but replace bitsField
| copy | is the state to copy |
| newField | is the new range for bitsField |
| vn | is the Varnode holding the new range |
| sgnExt | is the new state of sign extension |
References field, isSignExtended, node, and origLeastSigBit.